How to Write Documentation¶
This guide describes how to contribute to the luci-sso documentation using the provided toolkit.
Prerequisites¶
- Docker (or Podman) installed on your machine.
- make utility.
Working Locally¶
The documentation uses MkDocs with the Material theme. We provide a docs/Makefile that wraps these tools in a Docker container, so you don't need to install Python locally.
1. Start the Live-Reload Server¶
This is the best way to write documentation. It will automatically refresh your browser whenever you save a file in docs/ or modify mkdocs.yml.
make -C docs serve
Then open http://localhost:8000 in your browser.
2. Build the Static Site¶
If you want to verify the final production output:
make -C docs build
The output will be generated in the site/ directory in the project root.
3. Clean Up¶
To remove the generated site/ directory:
make -C docs clean
Standards & Style¶
Before submitting a PR, ensure your changes follow our Documentation Standards:
- Diataxis: Place your file in the correct quadrant (Tutorial, How-to, Reference, or Explanation).
- Accessibility: Add descriptive
alttext to all images. - Diagrams: Use Mermaid.js for diagrams and provide a textual fallback.