Documentation site
The public documentation site is an Astro + Starlight static site in apps/docs. It is served at
https://commitmentdesk.com and links to the application at https://app.commitmentdesk.com. The
authenticated application is never served from the root domain.
Source layout
Section titled “Source layout”The site does not duplicate public documents. scripts/sync-docs.mjs copies curated files into
apps/docs/src/content/docs/ and adds Starlight frontmatter. Generated pages are gitignored; the
landing page (index.mdx), 404 handling, theme CSS, and static assets are authored directly in
apps/docs.
Curated sources:
| Site section | Repository source |
|---|---|
| Getting started | README.md |
| Contributor guide | CONTRIBUTING.md, CODE_OF_CONDUCT.md |
| Trademarks | TRADEMARKS.md |
| API reference | docs/api/README.md |
| Security | docs/security/*.md |
| Operations | docs/operations/*.md |
| Architecture decisions | docs/adr/*.md |
Vulnerability reporting is generated separately because the repository is still private and the GitHub private-reporting link is not public. It will point at the repository’s reporting flow when the repository is published.
Commands
Section titled “Commands”pnpm docs:dev # generate content and run the dev server on :4321pnpm docs:sync # regenerate content onlypnpm docs:check # required pages, navigation, links, and Astro diagnosticspnpm docs:build # regenerate, check, build, and write Cloudflare headerspnpm docs:preview # serve the built site on 127.0.0.1:4321pnpm test:e2e:docs # build, serve, and run the documentation browser checkspnpm build includes apps/docs, so the normal workspace build verifies the site. pnpm docs:check
runs in CI before the build, and the browser job runs pnpm test:e2e:docs.
Content boundary
Section titled “Content boundary”Only material approved for public disclosure may be included. The sync and check scripts enforce:
- required pages exist;
- every sidebar slug resolves to a page;
- every internal Markdown link resolves;
- no link to
github.com/commitmentdesk/commitment-desk(the repository is private); - no link to the private business or cloud repositories;
- no personal email addresses, API-key-shaped values, tokens, or private keys.
Links to repository-only paths such as openspec/, packages/, and infra/ are removed from the
rendered page rather than published as dead links. Do not add PLAN.md or private runbooks to the
curated set.
A deliberate broken link fails pnpm docs:check; the Astro build also runs
starlight-links-validator.
Preview deployments
Section titled “Preview deployments”.github/workflows/docs-preview.yml builds every pull request that touches the site or its sources
with DOCS_PREVIEW=1, then deploys the output as a Cloudflare Pages preview on the pr-<number>
branch. Preview builds write X-Robots-Tag: noindex and a disallow-all robots.txt; production builds
do not.
Previews require the repository secrets CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID. Fork pull
requests build but do not deploy, because secrets are not available to them. The workflow updates one
comment on the pull request with the preview URL.
Production publication
Section titled “Production publication”Production is a separate manually dispatched workflow, Docs production:
- Run it from
main. - Type
deployin the confirmation input. - Approve the protected
productionenvironment if the repository plan supports required reviewers. - The workflow builds without preview headers, deploys the
mainbranch of thecommitment-desk-docsPages project, verifieshttps://commitmentdesk.com, and records the deployed commit in the run summary.
The workflow never runs for pull requests, forks, or a non-main ref. The repository visibility is
unchanged by a deployment.
Per ADR 0011:
| Host | Purpose |
|---|---|
commitmentdesk.com |
Landing page, documentation, and sign-in entry point |
app.commitmentdesk.com |
Authenticated application with the API same-origin at /v1 |
inbox.commitmentdesk.com |
Permanent redirect to the application host, preserving path/query |
The Pages project owns the root custom domain. The application Worker owns
app.commitmentdesk.com. A Cloudflare Single Redirect rule on inbox.commitmentdesk.com points to
the application host. See the hosted deployment runbook for DNS and redirect
checks.
Verification and rollback
Section titled “Verification and rollback”After a production deploy:
curl -fsSI https://commitmentdesk.com/ | head -n 1curl -fsS https://commitmentdesk.com/ | grep -q "Commitment Desk"curl -fsS https://commitmentdesk.com/getting-started/ | grep -q "Getting started"Confirm that https://commitmentdesk.com/ does not serve the authenticated app, and that
https://app.commitmentdesk.com/v1/health is healthy.
To roll back, open the Cloudflare Pages project, select the previous successful production deployment, and redeploy it. The production workflow records the commit for each deployment so the operator can identify the version to restore.