<aside> 🔁 Synced from GitHub #b91051ca6136. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.

</aside>

Updating these docs

The docs are a VitePress site. Every page is a Markdown file in docs/. Anyone can change them with a pull request.

Run it locally

npm install
npm run dev        # http://localhost:5173, live reload
npm run build      # static site in docs/.vitepress/dist
npm run preview    # serve the built site

Where things are

Path What
docs/index.md Home page
docs/architecture/*.md System-wide pages
docs/modules/*.md One page per module
docs/apps/*.md Front-end apps and internal tools
docs/engineering/*.md, docs/support/*.md Engineering and CX pages
docs/changelog.md What changed in the docs
docs/.vitepress/config.mts Navigation, sidebar, search

Rules for a change

  1. Change the page and add a changelog entry in the same PR. Put the date, the pages touched, and one line on what changed.
  2. Write from the code. Name the file you read in the page's Source section. If behaviour is a design rather than shipped code, mark it Status: Built or Status: Planned.
  3. Keep the module layout: In one paragraph → Key ideas → How it works → API → Where it appears → Connects to → Gotchas → Source.
  4. Plain language first, then detail. A designer or CX colleague should understand the first paragraph and the diagrams.
  5. Diagrams are Mermaid code blocks (````mermaid`), so they stay editable as text.
  6. Adding a page: create the file and add it to the sidebar in config.mts.

When code changes

When a PR changes how a module behaves (statuses, rules, jobs, endpoints), update that module's page in the same PR or a follow-up. The Gotchas sections are the most valuable part: add to them whenever a bug teaches something.

Deploying

npm run build produces a static folder, docs/.vitepress/dist, that any static host can serve. See the repository README for the Azure Static Web Apps and GitHub Pages workflows.

Automatic updates

A nightly workflow (.github/workflows/self-update.yml, 02:00 WAT) keeps the docs in step with the code: