The docs and the handbook
Public docs at /docs that anyone can read, written as Markdown files in your repository and dated from git, with a check of what they don't cover yet, and a private handbook in Admin → Docs that explains how every part of the product works for you and your agents.
Updated · 4 min read
Your product comes with two sets of docs, both written as Markdown files in your repository. The docs at /docs, these pages, explain the product to the people who use it, with no sign-in needed. The handbook, in Admin → Docs, explains to you and your coding agents how each part works in the code, how to change it and the rules not to break. Only admins and read-only accounts open it.
The docs at /docs
Each doc is a file in docs/public named like 20-plans-and-billing.md. The number sets the order, and the rest is the doc's address: /docs/plans-and-billing. Its frontmatter gives the doc a title, a summary and a section, and the docs are grouped by section on /docs. Pages render on the server, so search engines read them in full (see Search engines and assistants).
- Search the docs finds the docs that mention what you type, best first, each with the first line that matches. The search stays in the address, so a search can be shared.
- Each doc says when it was Updated: the day it last changed on
main, read from git, never from a date typed into the file./docssays when the docs as a whole Last changed. - What changed (
/docs/changes) lists every change to a doc, newest first, grouped by day: the doc, its section and a line saying what changed. A doc's first change is marked New page. The same list goes out as an RSS feed at/docs/changes/rss.xml. - A doc can play a video from your media library on a line of its own:
::video{demo="events"}plays a published feature clip, and::video{src="media:<id>"}plays any library video. Addtitle="…"to name it, andclipto play it muted and looping while it's on screen. - To translate a doc, put a file with the same name in a folder named for one of your site's languages, such as
docs/public/fr/20-plans-and-billing.md. It's served at/fr/docs/plans-and-billingwhile French is on (see Languages and translations).
The docs ship with your code: change a file, commit it and deploy. After changing a doc, run pnpm docs:history, which records each doc's last change from git for the server, since a deployed server has no git history. Commit the file it writes with the doc, or the checks fail.
What the docs cover
Each doc also says, in its frontmatter, what it explains and which code it describes. Those lines never show on the page. They let the product compare the docs with six lists it already keeps: its features, screens, settings, agent tools, API areas and server settings.
covers-screens: /organisation/billing
covers-env: STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET
sources: apps/server/src/modules/billing/**, packages/contracts/src/billing.ts
Admin → Docs → Coverage shows a tile for each of the six kinds, with how many of them a doc covers, such as "83 of 92". Select one to list what no doc covers yet. Below that are:
- Stale docs: docs whose
sourceschanged onmainafter the doc itself did, the stalest first, each with the changes it missed; - Needs a look: docs that name something that doesn't exist, or that declare nothing they cover.
For developers, pnpm docs:coverage prints the same report, and pnpm verify runs it with --check, which fails when coverage drops or a doc names something that isn't there. pnpm docs:coverage --next names the one piece of docs work to do next. Ask a coding agent to "run the docs autopilot" and it works through that list, writing and refreshing docs and opening pull requests as it goes, until nothing is left.
The handbook
Admin → Docs opens on the handbook, with its pages listed down the side under Start, Platform, Product, Operate and Reference. On a phone, pick a page from the list at the top.
- Search the handbook finds the pages that mention a word or phrase, with the nearest heading and the matching line. Type at least two characters.
- Copy as Markdown copies the page you're reading. Copy all for an agent copies every page as one document, to give a coding agent the whole picture.
- The Reference page, marked Generated, is built from the code each time it's opened: every API route, server setting, page block and agent tool, so it can't fall behind.
Each handbook page is a file in docs/handbook named like 20-billing.md, with a title, summary, area and order in its frontmatter. The server looks for that folder above its own, which is where the server's image puts it. To read the handbook from somewhere else, set HANDBOOK_DIR to the folder's path on the server. Without the folder, the handbook has only its Reference page.
Agents
An admin's connected agent can read the handbook and the docs' coverage, and changes neither:
- list the handbook's pages, with each one's title, summary and area (
list_handbook_pages), read one as Markdown (read_handbook_page), or find the pages that mention a word or phrase (search_handbook). Thereferencepage lists every API route, server setting and page block; - read what the docs don't cover yet, by kind, and the stale docs with what changed in their sources (
docs_coverage), to pick the next docs work.
The Docs and Handbook areas of the API reference have the same routes the pages use: the docs, their search and their changes for anyone, and the handbook and coverage for admins and read-only accounts.
Something unclear or missing? Ask us and we'll answer, then fix the page.


