Contributing to the Docs
The xorl documentation is built with Astro Starlight and lives in the docs/ directory of the repository.
Prerequisites
Section titled “Prerequisites”- Node.js 22+
- npm
Local Development
Section titled “Local Development”cd docsnpm cinpm run devThis starts a local dev server at http://localhost:4321 with hot reload.
Adding or Editing Pages
Section titled “Adding or Editing Pages”All content is in docs/src/content/docs/. Each file is a Markdown file with a frontmatter title:
---title: My Page---
Content here.Pages are organized into subdirectories that map to the sidebar sections (e.g. getting-started/, training/, parallelism/). After adding a new page, register it in the sidebar in docs/astro.config.mjs.
Building
Section titled “Building”Use the provided script from the repo root:
./docs/deploy_docs.shOr manually:
cd docsnpm cinpm run buildThe output is written to docs/dist/.
Deployment
Section titled “Deployment”Docs are deployed automatically to GitHub Pages when changes under docs/ are pushed to the qingyang/docs branch. The workflow is defined in .github/workflows/docs.yml.
To trigger a deployment manually without pushing a new commit:
gh workflow run docs.yml --repo togethercomputer/xorl --ref qingyang/docsTo watch the deployment progress:
gh run list --repo togethercomputer/xorl --workflow=docs.yml --limit=1gh run watch <run-id> --repo togethercomputer/xorl