Deploying the documentation site

The site in site/ is built from README.md and docs/ by site/build.mjs (npm --prefix site run build, output in site/dist/). It is served at https://docforge.gordonkit.com/ by the Cloudflare Worker docforge using Workers Static Assets: no Worker script, only the files in site/dist/.

How it deploys

The deploy-documentation job in .github/workflows/ci.yml runs on every push to main after the test and documentation jobs pass. It downloads the built site, then runs wrangler deploy with wrangler.jsonc at the repository root:

GitHub settings

Repository secrets:

The environment cloudflare-workers-production is created on the first deploy; add required reviewers there if you want a manual gate.

The site is public regardless of the repository's visibility.

Local preview

npm --prefix site ci
npm --prefix site run build
npx --yes serve site/dist

To check the Wrangler configuration without deploying:

npx --yes wrangler@4.157.0 deploy --dry-run