The documentation site is built from Markdown pages in apps/docs/content, plus reference pages generated from the code. Building and previewing it needs no model credentials and no running runtime.
Build and preview
From the repository root:
bun run docs:build
bun run docs:dev
docs:build writes the static site to apps/docs/dist, with a Markdown copy of each page beside its HTML and an llms.txt index of those copies at the root. It reads the checkout's git HEAD, so run it in a checkout with at least one commit.
docs:dev builds once and serves the result at http://127.0.0.1:5192, and DOCS_PORT changes the port. It does not watch files, so run bun run docs:build again after an edit, and restart it when you add a page.
Edit a page
A page is a Markdown file in apps/docs/content, and it is published only when apps/docs/src/catalog.ts lists it with its navigation group, summary and the source files it describes.
Two markers are replaced at build time, and an unknown name fails the build. <!-- diagram:NAME --> places a visual explainer from apps/docs/src/explainers.ts, and <!-- example:NAME --> places a TypeScript file from apps/docs/src/examples. Text after an `