Skip to content

Writing Docs Locally

Requires Node.js 22.x. From docs/:

Terminal window
npm ci
npm run dev

Dev server runs at localhost:4321. Keep it running while editing — changes hot-reload.

Pages live in docs/src/content/docs/. The file path maps directly to the route — dev/foo.md becomes /dev/foo/.

Each page needs frontmatter:

---
title: Page Title
description: Short summary.
---
Terminal window
npm run build # production output
npm run preview # preview the built site