Maintain the documentation
This site documents the source state recorded in docs-source.json: a
repository, a release label and an exact commit.
Synchronize with the source
Section titled “Synchronize with the source”- Pick the commit to document and check it out.
- Compare the pages with the code, not with older docs. The pages most likely
to drift are:
- CLI reference, against the Typer commands in
src/dicom_kb/cli/; - MCP tools, against
src/dicom_kb/mcp/; - Configuration, against
config.pyandcli/context.py; - Coverage and limits, against a fresh build and its gap log.
- CLI reference, against the Typer commands in
- Rerun the examples in Answer DICOM questions against a build of the current NEMA edition and paste the real output.
- Update every field of
docs-source.jsonand any prose that repeats the release or commit, in the same pull request.
Writing rules
Section titled “Writing rules”- Keep the five sections: Getting started, Guides, Concepts, Reference and Contributing. Add a page only for a distinct reader need.
- Fence code with an explicit language (
bash,python,json,yaml,text). Keep$prompts out ofbashblocks and put output in a separatetextblock. - Show short answers only. Never paste whole sections, tables or code lists from the standard.
- Keep the legal page’s non-affiliation, trademark, license-scope and no-certification language.
Validate
Section titled “Validate”npm run formatnpm run validateValidation checks formatting, code fences, site configuration, the source pin, Astro diagnostics, the production build and internal links. CI runs the same checks on pull requests.