ServerBox Documentation
The documentation site uses Astro Starlight
and is published at https://serverbox.lollipopkit.com/docs/. It is served under/docs of the project website; scripts/build-cloudflare-pages.sh builds both
sites and copies this site's output into website/dist/docs/.
Structure
docs/
โโโ dev/ # Developer notes, not part of the site (virt.md)
โโโ public/ # Static assets (favicons, ...)
โโโ src/content/docs/ # Pages โ English at the top level
โ โโโ advanced/
โ โโโ development/
โ โโโ zh/ # Simplified Chinese, mirroring the layout above
โ โโโ *.mdx # introduction, installation, quick-start, index
โโโ astro.config.mjs # Locales and sidebar, including sidebar translationsEach .md / .mdx file under src/content/docs/ becomes a route named after
its path. A page added in English needs a matching file under zh/, and a new
sidebar entry in astro.config.mjs carries its own translations map.
Locales are English and Simplified Chinese only. German, Spanish, French and
Japanese were dropped in Aug 2026 โ they had drifted out of sync with the code
and there was no one maintaining them.
Commands
Run from docs/:
| Command | Action |
|---|---|
npm ci |
Install the locked dependencies |
npm run dev |
Dev server at localhost:4321/docs |
npm run check-locale-parity |
Check that English and Simplified Chinese pages mirror each other |
npm run build |
Build to ./dist/ |
npm run preview |
Preview the build locally |
Writing
Documentation follows the code. When a page describes changed behaviour,
update it in the same change and keep the English and Simplified Chinese pages
in sync.