Docs Contributor Guide
Docs are Markdown/MDX under src/content/docs/, organized by audience:
getting-started/, users/, admin/, api/, troubleshooting/,
contributing/. Every page needs frontmatter:
---title: Creating Backupsdescription: One line saying what the page teaches.audience: [user] # user, admin, developer (one or more)features: [backups] # product area tagssources: # repo paths whose changes should trigger review - catalyst-backend/src/routes/backups.tslast_verified: '2026-09-15'---Rules: task-oriented prose, one audience per page, Catalyst terminology
(panel, node, server, template, allocation, task — never reuse the Pterodactyl product name for a Catalyst server), no invented flags/ports/defaults.
See AGENTS.md for the full conventions.
Validate
Section titled “Validate”pnpm installpnpm validate # links, slugs, frontmatter, assets, OpenAPI, terminologypnpm run build # the same command Cloudflare Pages runsFix every failure — CI runs the same checks on every pull request.
API reference
Section titled “API reference”Never hand-edit api/openapi.json. Regenerate it from a Catalyst checkout:
pnpm sync-openapi --from-checkout ../catalystthen commit the result. The Scalar viewer (api/reference) renders whatever is
committed.
The docs agent
Section titled “The docs agent”For larger sync work, use the docs agent (tools/docs-agent/) in audit,
diff, feature, validate, or api mode — it maps Catalyst changes to
affected pages and opens reviewable changes. Details in its README.
Publish
Section titled “Publish”Merge to main → Cloudflare Pages builds and deploys to
docs.catalystctl.com automatically. Pull requests get preview deployments.
Deployment details: DEPLOYMENT.md.
