Documentation development¶
The documentation website lives in website/ and is built with Zensical using uv for reproducible Python dependencies. You do not need to build the Desktop app or Go core to edit or preview documentation.
Prerequisites¶
- uv
- Python 3.12+ (automatically provisioned by
uvif needed)
Local preview¶
Production build¶
Generated HTML is written to website/build/ (gitignored and never committed).
Adding or editing pages¶
- Add or edit Markdown files under
website/content/. - Register new pages in the explicit
navarray inwebsite/zensical.toml. - Keep reference documentation synchronized with the implementation—link from guides to reference pages rather than duplicating command tables or metric definitions.
- Do not publish internal planning documents from
docs/plans/ordocs/ideation/.
Validating documentation¶
Run the validation script from the repository root:
This checks:
- All
zensical.tomlnavigation entries exist. - Internal Markdown links and image asset references resolve.
- CLI commands and options stay synchronized with
cored/internal/command/command.go. - Process types stay synchronized with
cored/internal/poll/. - MCP tool names stay synchronized with
DaemonitorMcpServer.kt. - Screenshot assets in
website/content/assets/screenshots/matchdocs/images/. - Legacy redirect targets (
cli.htmlandjavascripts/legacy-redirects.js) resolve to valid pages.
Updating screenshots¶
Desktop screenshots (live-monitor.png, process-visual.png, build-history.png) are generated deterministically via:
After regenerating docs/images/*.png, copy updated screenshots into website/content/assets/screenshots/desktop/ (and website/content/assets/screenshots/tui/ for cli-monitor.png) so validate_docs.py and PublicWebsiteTest confirm parity.