the documentation site for declared-md. built with Docusaurus 3, deployed to GitHub Pages.
cd docs/
npm install
npm start # starts dev server at localhost:3000npm run build # produces build/
npm run serve # preview the production build locallysearch (local index) works in both dev and production builds.
-
new page: add a
.mdor.mdxfile indocs/docs/<section>/. updatesidebars.tsto include it. -
new section: create a folder in
docs/docs/, add a_category_.json, and updatesidebars.ts. -
updating a spec mirror: the files in
docs/docs/spec/are mirrors ofdeclared-md/spec. when the spec changes, update the mirror manually. the banner at the top of each mirror file notes thatspec/is the normative source.
the site uses CSS variables mapped from DESIGN.md. all token overrides are in src/css/custom.css. fonts are loaded via @fontsource in src/css/fonts.css.
reference: ../DESIGN.md
the site deploys automatically via GitHub Actions on push to main. the workflow is in .github/workflows/deploy.yml.
to deploy to GitHub Pages, enable Pages in the repo settings with source set to "GitHub Actions".