Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

synth-docs

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/.

Requirements

  • Node.js 22+
  • pnpm 10 (packageManager in package.json)
pnpm install   # also generates the Fumadocs content collections

Development

pnpm dev   # http://localhost:3000

Content 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.

Build and preview

pnpm build   # production build
pnpm start   # serve the export

The 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/.

Deploy

pnpm deploy   # build and deploy the Worker + static assets
pnpm upload   # build and upload a new Worker version without deploying

Images can be published to R2 without redeploying the site:

pnpm publish-image ./screenshot.png docs/synth/screenshots/example.png

This 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.

Checks

pnpm lint         # Biome
pnpm types:check  # Fumadocs collections, Next types, tsc
pnpm build        # production build

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages