This documentation

How the pages you are reading are stored, rendered, served and tested. The documentation is part of the app: the same server that runs the game serves the guide.

Where the content lives

Every page is a plain Markdown file in documentation/, named NN-slug.md so the file system sorts them into reading order. index.md is the landing page served at /docs. The page title is the first # heading in the file, and the slug is the file name minus the extension, so a new page is a new file, nothing else to register.

There are no front-matter blocks, no build steps for content, and no database. Adding a page is: create NN-your-topic.md, write it, done. The tests will complain if the title is missing or duplicated, if a link is broken, or if an anchor does not exist.

How it is rendered: Bun's native Markdown

src/features/documentation/ holds the engine:

The page layout

The shell adapts to the screen size, and the page list never changes sides:

How it is served

How it is tested

Two test files treat the documentation like the feature it is:

House rules for pages

Next: Known issues and gaps.