The source of docs.gateweave.com: one site for the docs of Gateweave's products, built with Starlight and served as static files by a Cloudflare Worker.
The docs themselves are written in each product's repository, not here. pnpm sync copies the
README.md, CHANGELOG.md and docs/ of Track,
Agents, ID,
Mail, Guard, and
Backup at their latest release (or main until a product
has one) and rewrites their links for this site. Fix a page in its product's repository and it
arrives here with the next sync.
| Path | What lives there |
|---|---|
scripts/products.ts |
The products, and their pages' groups, order and labels |
scripts/sidebar.ts |
Each product's sidebar group, built from those lists |
scripts/sync.ts |
Reads each repository and writes the pages (pnpm sync) |
scripts/transform.ts |
Titles, descriptions and links, with tests beside it |
src/content/docs/ |
The home page, the 404 page and the copied pages (one folder each) |
src/generated/ |
What the last sync read: versions and the sidebar |
public/<product>/ |
Images copied from a product's docs/ |
src/components/ |
Starlight overrides: the title says which version a page describes |
public/markdown/ |
Same-site Markdown for each copied page and its copy action |
Everything under a product's folder in src/content/docs/ and public/, public/markdown/, and src/generated/,
is written by pnpm sync: don't edit it by hand.
Node.js 24 and pnpm 12.
| Command | Purpose |
|---|---|
pnpm install |
Install dependencies |
pnpm dev |
Run the site on http://localhost:4730 |
pnpm sync |
Copy the products' docs again (GITHUB_TOKEN raises GitHub's limit) |
pnpm verify |
Lint, type-check, test and build |
pnpm preview |
Build and serve it as the Worker does, on port 4730 |
pnpm run deploy |
Build and deploy (needs CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID) |
- Every day, and by hand from the Sync workflow after a release, GitHub Actions runs
pnpm sync. When a page changed, it commits the change tomainand deploys. - Every push to
mainthat passes CI deploys.
Fix a product's page in that product's repository; change the site and the sync here. See CONTRIBUTING.md. AGENTS.md is the guide for AI agents, and SECURITY.md says how to report a vulnerability.
AGPL-3.0, as the products are.