Skip to content

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 uv if needed)

Local preview

cd website
uv sync --locked
uv run zensical serve

Production build

cd website
uv sync --locked
uv run zensical build --clean

Generated HTML is written to website/build/ (gitignored and never committed).

Adding or editing pages

  1. Add or edit Markdown files under website/content/.
  2. Register new pages in the explicit nav array in website/zensical.toml.
  3. Keep reference documentation synchronized with the implementation—link from guides to reference pages rather than duplicating command tables or metric definitions.
  4. Do not publish internal planning documents from docs/plans/ or docs/ideation/.

Validating documentation

Run the validation script from the repository root:

python3 website/scripts/validate_docs.py

This checks:

  • All zensical.toml navigation 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/ match docs/images/.
  • Legacy redirect targets (cli.html and javascripts/legacy-redirects.js) resolve to valid pages.

Updating screenshots

Desktop screenshots (live-monitor.png, process-visual.png, build-history.png) are generated deterministically via:

./gradlew captureReadmeScreenshots

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.