Writing Docs Locally
Requires Node.js 22.x. From docs/:
npm cinpm run devDev server runs at localhost:4321. Keep it running while editing — changes hot-reload.
Content
Section titled “Content”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 Titledescription: Short summary.---npm run build # production outputnpm run preview # preview the built site