Local Development
This guide covers the standard local workflow for working on anolishq.github.io.
Prerequisites
- Node.js
>=20 pnpminstalled- Git access to the repositories listed in
data/repos.json
Install
bash
pnpm install --frozen-lockfileRun Docs Locally
bash
pnpm devThis starts the VitePress development server for the docs/ directory.
Build the Site
bash
pnpm buildBuild performs four steps:
- Injects pinned schema artifacts into
docs/public/schemas/anolis/ - Aggregates repo docs into
docs/repos/ - Generates reference docs into
docs/reference/ - Runs
vitepress build docs
Preview Production Output
bash
pnpm previewCommon Issues
- Build fails while aggregating: Check
data/repos.jsonand confirm each repo has the configured docs path. - Missing pages in sidebar: Confirm each section has markdown files with valid
index.mdorREADME.mdentry points where expected. - Build fails while injecting schemas: Confirm the pinned
anolis_versioninschemas/anolis-version.jsonexists as a GitHub release with the expected schema tarball assets. - Broken links after docs changes: Run a full
pnpm buildbefore opening a PR.
