Documentation Guide¶
How to build, preview, and contribute to the project documentation using MkDocs.
Overview¶
This project uses MkDocs with the
Material for MkDocs
theme to generate a static documentation site from Markdown source files in
the docs-src/ directory.
See ADR-012 for the decision record on using MkDocs.
Prerequisites¶
- Python 3.12+
- pip (or Poetry)
Install the documentation dependencies:
Building the Documentation¶
# Build the static site into the site/ directory
./scripts/build-docs.sh
# Or use MkDocs directly
mkdocs build
Previewing Locally¶
Then open http://127.0.0.1:8000 in your browser. MkDocs will live-reload when you save changes to the source files.
Directory Structure¶
docs-src/
├── index.md # Landing page
├── CONTRIBUTING.md # Contributing guidelines
├── DEVELOPMENT_PHILOSOPHY.md # Development philosophy
├── DOCUMENTATION_README.md # This file
├── LOCAL_DEVELOPMENT_DEPENDENCIES.md # Tool installation guide
├── SHARED_LIBRARY_VERSIONING.md # Library versioning guide
└── feature-request-automation.md # Feature request workflow
Writing Guidelines¶
- Use Markdown (
.md) for all documentation files. - Place new files in
docs-src/and add them to thenavsection ofmkdocs.yml. - Follow the project's markdownlint configuration for style consistency.
- Use admonitions (
!!! note,!!! warning) for callouts. - Use fenced code blocks with language identifiers for syntax highlighting.
Deployment¶
The documentation site is built as a static site in the site/ directory.
It can be deployed to GitHub Pages or any static hosting provider.