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.
- Live site: https://absmach.eu/docs/synth
- License: Apache 2.0
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.
- Node.js 22 or newer
- pnpm 10 (the exact version is pinned in
package.json)
pnpm installThe 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.
pnpm devThe 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.
pnpm build # production build and static export
pnpm start # serve the exported site locallyThe 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 8789Static 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.pngThe 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.
pnpm deploy # build, then deploy the Worker and static assets
pnpm upload # build, then upload a new Worker version without deployingDeployment 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.
CI runs on pushes and pull requests to main:
pnpm lint
pnpm types:check
pnpm buildRun the same three commands locally before opening a pull request.