This repository contains the Docusaurus site published at docs.revisium.io. Use the local site for both developer changes and editor/content-only updates.
- Node.js
22.16.0from.nvmrc. The package accepts Node.js>=18, but the pinned version keeps local work close to CI and release tooling. - npm. Use
package-lock.jsonas the dependency lockfile. - No Revisium backend is required to run or build the docs site locally.
cd <path-to-revisium-docs>
nvm use
npm ci
npm startOpen http://localhost:3000. Docusaurus reloads the site as Markdown, MDX, TypeScript, CSS, and sidebar files change.
If port 3000 is busy, pass another port:
npm start -- --port 3001- Main documentation pages live in
docs/. - Sidebar navigation is controlled by
sidebars.ts. - Static images live under
static/img/. - Screenshot pages usually use
src/components/Screenshot; when adding a new screenshot through that component, add its dimensions insrc/components/Screenshot/imageDimensions.ts. - Prompt-backed diagrams or generated visual assets should live under
static/img/diagrams/<asset-name>/with:prompt.mdfor the current approved generation prompt, constraints, usage, and regeneration checklist.README.mdfor asset ownership, source-of-truth notes, stable path, dimensions, and update workflow.diagram.pngor another stable published filename referenced by docs.versions/for approved historical exports.
- The site uses MDX, so Markdown pages can import React components when needed.
Run these before opening a pull request or handing a docs change to review:
git diff --check
npm run typecheck
npm run buildnpm run build catches broken links and Docusaurus build errors. After a
successful build, preview the production bundle with:
npm run serve