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, an open-source AI-assisted PCB design platform. Built with Next.js and Fumadocs, exported as a static site, and served by a Cloudflare Worker.

The site is one docs tree served at the site root. Enterprise Edition guides live under /user-guide/enterprise/ alongside the rest of the user guide.

Requirements

  • Node.js 22 or newer
  • pnpm 10 (the exact version is pinned in package.json)
pnpm install

The postinstall hook runs fumadocs-mdx, which generates the .source/ content collections. Run pnpm install again after pulling changes to content/docs/ if the generated files look stale.

Development

pnpm dev

The site is served from the root at http://localhost:3000. Development deliberately ignores the production base path so local URLs stay short.

Content images resolve from public/screenshots/ while developing. In production builds, the same Markdown image paths are rewritten to /docs/synth/screenshots/..., which the Worker serves from R2 with a static fallback.

Search is served by the static index at /api/search; there is no search server to run.

Build and preview

pnpm build   # production build and static export
pnpm start   # serve the exported site locally

The build runs next build and then nests the export under the deployed base path:

out/docs/synth/   the docs site

With pnpm start, open http://localhost:3000/docs/synth/.

To preview the full deployed shape, including the image Worker, run:

pnpm build
npx wrangler dev --port 8789

Images

Static fallback images are committed under public/screenshots/. Maintainers can publish replacements or new images to R2 without redeploying the site:

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

The destination must start with docs/synth/img/, docs/synth/diagrams/, or docs/synth/screenshots/. Publishing requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ZONE_ID; see scripts/README.md for the one-time setup and the local credentials file.

Deployment

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

Deployment needs a Cloudflare account with access to the websites-images R2 bucket and the absmach.eu zone. The Worker only handles the image paths listed in wrangler.jsonc; every other request is served from the static export.

Continuous integration

CI runs on pushes and pull requests to main:

pnpm lint
pnpm types:check
pnpm build

Run the same three commands locally before opening a pull request.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages