Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

KindWhere it livesHow it ships
Tutorials, concepts, landing pagesdocs-site/src/**Authored directly
Reference and operator chaptersdocs/**Generated by ci/sync_docs.py
Engineering history, ADRs, plans, reviewsdocs/, 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

Next

Contributing Development Testing