Documentation
Buzz publishes its public documentation from docs/site/ with Astro Starlight. Update documentation in the same change as user-visible behavior.
Prerequisites
Section titled “Prerequisites”Complete the repository setup in Development. Documentation generation imports the CLI command tree and the server application, so install dependencies in cli/, server/, and docs/site/ before building the site.
cd clinpm ci
cd ../serveruv sync
cd ../docs/sitenpm ciChoose The Right Page
Section titled “Choose The Right Page”- Put a first deployment path in Getting Started.
- Put one task with ordered steps in Guides.
- Put operator procedures in Self-Hosting.
- Put complete, scannable behavior in Reference.
- Put recognizable symptoms and checks in Troubleshooting.
- Put repository workflows in Contributing.
Follow the repository’s Documentation Writing Guide. Keep one authoritative explanation for each behavior and link to it instead of copying it into several pages.
Edit Hand-Written Pages
Section titled “Edit Hand-Written Pages”Hand-written pages live under docs/site/src/content/docs/. Add frontmatter with a concise title and description. The Starlight sidebar discovers pages from their section directories.
Use repository-relative links for source files and relative documentation links for other pages. Check links from the generated site at https://buzzstatic.dev.
Update Generated Reference
Section titled “Update Generated Reference”Do not edit these outputs directly:
docs/site/src/content/docs/reference/cli/docs/site/src/content/docs/reference/configuration.mddocs/site/public/openapi.jsonserver/.env.example
Change their source instead:
- CLI pages come from Commander definitions in
cli/src/. - Configuration and
.env.examplecome fromserver/src/server/environment.py. - The OpenAPI schema comes from the FastAPI application and its request and response models.
Regenerate all outputs from the docs directory:
cd docs/sitenpm run generateReview generated diffs and commit them with the source change.
Preview And Verify
Section titled “Preview And Verify”Start the local documentation server:
cd docs/sitenpm run devBefore opening a pull request, run the type and content checks, then create the production build:
cd docs/sitenpm run checknpm run buildBoth commands regenerate reference files first. Review git diff afterward to catch stale generated output.