Documentation authoring¶
Goal¶
Add or revise a page with one reader, one outcome, one canonical fact owner, and a clean Zensical route.
Prerequisites¶
- A source checkout with Docker available for the pinned documentation toolchain.
- The target audience and page type selected before writing.
- The owning implementation or reference contract available for verification.
Steps¶
-
Choose one audience:
userfor completing work with Colossus;operatorfor configuring, securing, and recovering deployments;developerfor schemas, internals, and contributing.
-
Choose one page type:
tutorialfor a guided learning journey;how-tofor a specific outcome;conceptfor a mental model;referencefor exact contracts.
-
Add required frontmatter:
-
For tutorials and how-tos, include Goal, Prerequisites, Steps, Expected result, Verification, Failure path, and Next step.
-
Put installed-binary commands in user and operator pages. Keep Cargo, source launchers, and repository verification commands in Develop.
-
Link to the canonical owner instead of copying:
- installation in Get started;
- field names in Configuration reference;
- access semantics in Administer;
- tool definitions and schemas in Reference;
- release history in the root changelog.
-
Use Mermaid only when relationships are clearer than prose. Add adjacent prose that explains the same sequence or structure without relying on color. Zensical's native renderer consumes the pinned, repository-local Mermaid runtime instead of its network fallback; update the local runtime, license, and documentation contract together. Wrap each diagram in a labeled, keyboard-focusable
diagram-scrollregion so dense diagrams remain readable on narrow screens. Do not replace the local preload with a CDN import. -
Add the page to explicit
zensical.tomlnavigation and use lowercase directory routes. If replacing a historical URL, update the checked-in redirect manifest. -
Validate the site and its executable examples with the repository gate:
Preview locally with:
Expected result¶
The page is discoverable in the intended audience lane, has valid metadata, builds in strict mode, has no broken internal links or anchors, and contains no duplicated canonical contract.
Verification¶
Check the page at mobile and desktop widths in both color schemes. Verify keyboard focus, overflow, tables, code copy, search discovery, diagrams, missing assets, and browser console errors. The documentation gate builds the site in strict mode and runs published configuration and workflow examples through the Rust parsers.
Failure path¶
If a page needs two audiences or two documentation types, split it. Record durable architecture choices as an ADR, keep current evidence discoverable in the feature inventory, and leave superseded reconstruction narratives in Git history. Do not maintain a detached internal specification. Do not add template overrides, custom JavaScript, analytics, external fonts, or CDN diagram loaders.
Next step¶
Request review from the owner of the documented contract and from a reader in the declared audience.