Documentation site for Synth, built with Next.js and Fumadocs. It is a single docs tree served at the site root, with the Enterprise Edition pages under /user-guide/enterprise/.
- Node.js 22+
- pnpm 10 (
packageManagerinpackage.json)
pnpm install # also generates the Fumadocs content collectionspnpm dev # http://localhost:3000Content images resolve from public/screenshots/ during development. Production rewrites the same markdown to /docs/synth/screenshots/..., which the Worker serves from R2 with a static-export fallback.
Search is served by the static index at /api/search.
pnpm build # production build
pnpm start # serve the exportThe build runs a Next export and nests it under the deployed base path:
out/docs/synth/ the docs site
With pnpm start, open http://localhost:3000/docs/synth/.
pnpm deploy # build and deploy the Worker + static assets
pnpm upload # build and upload a new Worker version without deployingImages can be published to R2 without redeploying the site:
pnpm publish-image ./screenshot.png docs/synth/screenshots/example.pngThis requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ZONE_ID (see scripts/publish-image.mjs). Local credentials can go in scripts/.env.publish-image, which is git-ignored.
pnpm lint # Biome
pnpm types:check # Fumadocs collections, Next types, tsc
pnpm build # production build