Guides
Documentation access
The application serves everything: the API contract, the public status demonstration and this handbook. There is no separate documentation process to start, and no separate site to deploy.
Application reference
Start the application and open:
| Resource | Local URL | Dev URL after application deployment |
|---|---|---|
| Handbook | http://localhost:3000/docs |
https://dev.feelcouch.tech/docs |
| Human-readable API reference | http://localhost:3000/api-docs |
https://dev.feelcouch.tech/api-docs |
| OpenAPI 3.1 JSON | http://localhost:3000/api/openapi |
https://dev.feelcouch.tech/api/openapi |
| Public demo status | http://localhost:3000/status |
https://status.feelcouch.tech/ |
The API reference is rendered by the application with self-hosted code and styles. It has no Swagger UI, Redoc or CDN runtime dependency.
Full handbook
The documents in platform-docs/ are rendered by the application at /docs,
inside the same chrome and the same design tokens as every other surface. The
reading order and the sections come from lib/handbook/nav.ts; the title of
each page comes from its own first heading, so a renamed page cannot carry a
stale title in the navigation.
Editing the handbook is editing markdown. Start the application and the page reflects the file:
npm run dev
For a long time this handbook was written but never published. MkDocs rendered
it locally under a Python toolchain the pipeline did not run, and the site was
never deployed, so /docs showed four cards and none of the twenty-four
documents behind them. Rendering it in the application removed the second
toolchain, the second design system and the second navigation at once.
Verification
npm run check:docs fails the build on the two ways a published handbook rots
silently:
- a document that exists but no navigation entry reaches, or a navigation entry that names a document that does not exist;
- a cross-reference pointing at a file or an anchor that is gone.
The anchor algorithm the guard validates against is the one the renderer uses, so an anchor the guard accepts is an anchor the served page actually has.
Markdown links between documents are written as file paths and rewritten to
handbook routes when rendered, so ../architecture/rollouts.md#rollout-targets
works both in an editor and in the browser.