Public Docs Site
Wardian publishes the Markdown files in docs/ as a VitePress site. The Markdown files remain the source of truth; VitePress is only the public rendering and navigation layer.
Local Development
Install dependencies first:
bash
npm installStart the local docs server:
bash
npm run docs:devBuild the static site:
bash
npm run docs:buildPreview the built site:
bash
npm run docs:previewPowerShell uses the same commands.
Publishing
The Wardian Docs GitHub Actions workflow builds the site on pushes to main that touch docs, package metadata, or the docs workflow. It deploys docs/.vitepress/dist to GitHub Pages.
The workflow sets DOCS_BASE=/ because the Wardian repository uses the custom GitHub Pages domain docs.wardian.org. If the site falls back to the default project URL, update the workflow environment to use DOCS_BASE=/Wardian/.
Content Rules
- Keep docs source in
docs/; do not move user guides into a separate website folder. - Prefer plain Markdown and relative links so pages remain readable on GitHub.
- Use placeholders such as
<absolute-workspace-path>instead of local machine paths. - Put user-facing screenshots under
docs/assets/screenshots/and follow Screenshot Documentation. - Avoid VitePress-only Vue components unless the page genuinely needs an interactive docs feature.