Documentation Maintenance
Local Build
Install the docs tooling:
pip install -e .[docs]
Build the site locally:
mkdocs build --strict
Serve it locally during editing:
mkdocs serve
What the Docs Depend On
mkdocsmkdocs-materialmkdocs-clickpymdown-extensions
Source of Truth Rules
autonima/templates/sample_config.ymlis the canonical sample config.autonima create-sample-configmust emit that exact config text.examples/sample_config.ymlshould stay in sync with the canonical template.- CLI docs should rely on the generated Click reference instead of manually restating every option.
GitHub Pages Publishing
Docs are built and deployed from GitHub Actions.
Repository setting expected:
- GitHub Pages source:
GitHub Actions
Workflow behavior:
- pull requests to
masterbuild docs only - pushes to
masterbuild and deploy the site
Before Merging Docs Changes
Run:
mkdocs build --strict
pytest tests/test_cli.py tests/test_docs.py -q
Check:
- README examples still match the CLI
- links resolve
- the sample config still validates