Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.75 KB

CONTRIBUTING.md

File metadata and controls

42 lines (30 loc) · 1.75 KB

Contributing to the docs site

The pages come from the VirtualGPU repo. To fix a doc, change it there under docs/ (or ROADMAP.md, CHANGELOG.md, CONTRIBUTING.md). This repo is the site around them.

Development

You need Node.js 22.12 or newer.

npm install
npm run sync         # pull the docs from VirtualGPU main
npm start            # dev server on http://localhost:3000
npm run build        # production build, fails on broken links
npm run typecheck
npm run format
npm run check-text   # no em or en dashes

To see docs you are writing before they are on main, clone VirtualGPU next to this repo and run npm run sync:local instead of npm run sync.

Where things are

Path What it is
docs/ Made by the sync from the VirtualGPU repo. Don't edit
src/data/ JSON made by the sync, like the profile list
src/pages/ The landing page
src/theme/, src/css/ Theme overrides and styles
scripts/sync-content.mjs The sync

The Sync Docs workflow runs once a day and commits what changed. The push deploys the site.

Making a change

  1. Fork the repo and create a branch.
  2. Make your change and run npm run build.
  3. Commit with a conventional message, like fix: landing page links. The Git hooks format your staged files and check the message.
  4. Open a pull request.

Writing

Short sentences, plain words, no em dashes.