Runbook: Docusaurus docs site (docs.ehxlabs.xyz)
Milestone: M5.11.6 · Issues: ehx-kb#45, ehx-web#64
Architecture
| Piece | Location |
|---|---|
| Editorial source | ehx-kb/docs/*.md (this tree) |
| Site generator | ehx-kb/website/ (Docusaurus 3) |
| Build output | ehx-kb/website/build/ |
| Public URL | https://docs.ehxlabs.xyz (Caddy file_server, not GitHub redirect) |
Content backlog (user-facing guides): milestone-5-11-docs-content.md.
Build locally
cd ehx-kb
./scripts/build-docs-site.sh
Preview:
cd website && npm run serve
Deploy (production)
- Build on the host (or CI artifact):
cd /path/to/ehx-kb && ./scripts/build-docs-site.sh - Ensure
ehx-webcompose mounts the build:- Volume:
../ehx-kb/website/build:/srv/docusaurus:ro
- Volume:
- Recreate Caddy after Caddyfile change:
cd ehx-web && docker compose up -d caddy --force-recreate - Verify:
https://docs.ehxlabs.xyzshows Docusaurus nav (not Next link hub).
Sidebar
Edit ehx-kb/website/sidebars.js when adding runbooks to the public nav. Files can live in docs/ without being listed (omitted from sidebar).