Documentation site
The documentation site is an Astro Starlight project at the repository root. It loads Markdown and MDX files from their existing locations instead of requiring a separate docs source tree.
Content sources
The docs content collection loads:
README.mddocs/**/*.{md,mdx}- package and component
README.mdfiles under existing project directories
Route IDs are generated from repository-relative source paths. The root
README.md becomes the site index, and nested README.md files use their parent
directory path.
Commands
Install dependencies:
npm installRun the local development server:
npm run devBuild the static site, Pagefind search index, and LLM text files:
npm run buildValidate the documentation site in CI:
npm run validatePreview the built site locally:
npm run previewThe build publishes docs-dist/, including llms.txt, llms-full.txt, and the
Pagefind search index.
Mermaid diagrams
The docs build renders fenced mermaid code blocks as diagrams. Use this form
in Markdown:
```mermaidflowchart LR start[Edit docs] --> build[npm run build] build --> publish[Publish docs-dist]```The Mermaid integration must run before Starlight in astro.config.mjs so
Starlight receives transformed diagram nodes instead of syntax-highlighted code
blocks.