Docs style
This book is the public documentation surface. The engineering corpus under docs/ is the canonical source for reference and operator chapters; tutorials are authored in the book.
Source model
| Kind | Where it lives | How it ships |
|---|---|---|
| Tutorials, concepts, landing pages | docs-site/src/** | Authored directly |
| Reference and operator chapters | docs/** | Generated by ci/sync_docs.py |
| Engineering history, ADRs, plans, reviews | docs/, plan/, review/ | Repository only (never published) |
Never hand-edit a generated chapter: edit the canonical docs/ source and run:
python3 ci/sync_docs.py --apply
mdbook build docs-site
python3 ci/sync_docs.py --check is the CI drift gate.
Writing rules
Lead with the task. A page starts with what the reader will do, then the steps, then the reference detail.
Verify every command. If you cannot run it, mark it as unverified; do not present it as tested.
No invented counts or URLs. Counts are machine-derived (AGENTS.counts + ci/render-docs-counts.py). Product URLs are the public domains only.
Use the real names. Sol, Luna, Mango, Limon; WILDZERG (never “Cosmos”); ZERGBASE (one word).
State non-claims. If a feature is roadmap or not enforced, say so in Known limitations.
Link the source of truth. A behavior claim links to the reference chapter that proves it.
Code fences carry a language (bash, json, lua, erlang).
No secrets in examples. Use <redacted>, environment variable names, or placeholder paths.
Structure
One H1 per page.
A short intro before the first H2.
Task steps use numbered lists; reference tables use stable columns.
Admonitions use GitHub-style blockquotes (> [!NOTE]), which mdBook renders.
Anchors: never rename a heading that an alert rule links to without updating the alert.
Build and check
mdbook build docs-site
mdbook test docs-site # when Rust code blocks are present
python3 ci/portal_link_check.py
python3 ci/sync_docs.py --check