Documentation approach

Tool: Sphinx + MyST Markdown

The docs site is built with Sphinx, written in Markdown (MyST), themed with Furo, and the API reference is generated from code docstrings by sphinx-autoapi. Diagrams use Mermaid. Rationale in ADR 0001: Sphinx + MyST for documentation.

Built by .github/workflows/docs.yml on every push and pull request, with warnings as errors (-W), so a broken link or missing page fails the check.

Publishing to GitHub Pages is off for now (the repository is private). To turn it on later: Settings → Pages → Source: GitHub Actions, then set the repository variable PAGES_ENABLED to true. No code change is needed.

Until then, build and read the docs locally (see the README).

Screenshots

The admin guide will include screenshots of the setup wizard and main screens. Plan: capture them from a running instance with demo data, stored under docs/_static/screenshots/, and refresh them whenever the UI changes.

Documentation in code

Area

Standard

Enforced by

Python

Google-style docstrings, type hints on all public APIs

ruff (D pydocstyle rules), interrogate (100% public), mypy --strict

REST API

FastAPI route docstrings + Pydantic field descriptions

OpenAPI schema published in the docs

TypeScript

TSDoc on exported components, hooks and functions

eslint-plugin-jsdoc

Modules

Each module has a README-style page: what it protects, permissions, limits, restore behavior

Docs build fails if a registered module has no page

Decisions

ADRs in docs/adr/

Review

The docs build runs with warnings as errors (-W) in CI, so broken references and missing pages fail the pipeline.

Planned site structure

  • Getting started: install on Ubuntu, install on RHEL, first backup.

  • Admin guide: app registration, modules, jobs, storage, restore, upgrades, DR.

  • Module reference: one page per module.

  • Developer guide: architecture, writing a module, testing, releasing.

  • API reference: generated (Python) + OpenAPI (REST).

  • Decisions: ADRs.