Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs

This commit is contained in:
2026-09-15 10:41:00 -06:00
parent 6dc77e8eb0
commit a2b65bb47f
16427 changed files with 6972976 additions and 3 deletions
+68
View File
@@ -0,0 +1,68 @@
# Documentation Workflow
This project has three documentation targets:
| Target | Source | Output |
| --- | --- | --- |
| Zensical site | `docs/index.md`, `docs/getting-started.md`, `docs/api.md` | `site/` |
| Rust crate docs and root README | `docs-shared/guide.md` included by `src/lib.rs` | docs.rs and `README.md` |
| Python package README | `docs-shared/guide.md` referenced by `pyproject.toml` | PyPI package description |
Keep user-facing pages focused on using the library. Build and generation
instructions belong here.
## Authoring Rules
Use Zensical content tabs in site pages when showing equivalent Rust and Python
examples:
````markdown
=== "Rust"
```rust
let miner = factory.get_miner(ip).await?;
```
=== "Python"
```python
miner = await factory.get_miner("192.168.1.10")
```
````
Keep `docs-shared/guide.md` in plain Markdown. It is included directly in
Rustdoc and is also the Python package README, so it should avoid Zensical-only
syntax.
## Regenerate The Root README
Regenerate the root README from Rust crate docs:
```sh
cargo +nightly doc2readme --expand-macros --template README.j2 > README.md
```
The nightly toolchain is needed because `src/lib.rs` includes `docs-shared/guide.md`
with `include_str!`, and `cargo-doc2readme` needs macro expansion to read it.
## Preview The Zensical Site
Install the documentation extra in your active environment if needed:
```sh
python -m pip install -e ".[docs]"
```
Preview while editing:
```sh
zensical serve
```
Build the static site:
```sh
zensical build
```
The site configuration lives in `zensical.toml`.