Cloudflare Pages
Create a Pages project from this repository and use:
| Setting | Value |
|---|---|
| Build command | bun run build |
| Build output directory | apps/docs/dist |
| Root directory | / |
Cloudflare Pages only needs the generated folder. For a direct upload with Wrangler:
npx docshelf build
npx wrangler pages deploy dist --project-name my-docs
GitHub Pages
This repository includes a workflow at .github/workflows/cd_pages.yml. It builds with the repository name as the base path, uploads apps/docs/dist/ as the Pages artifact, and deploys it on pushes to main.
To use it in your docs repository:
- Copy the workflow file.
- In repository settings, set Pages → Source to GitHub Actions.
- Push to
mainor run the workflow manually.
The generated site is static, so it also works with the branch-based docs/ source if you prefer to publish prebuilt files yourself.
Any static host
npx docshelf build
Upload the contents of dist/. That is the portable contract.
Set site.url in docshelf.toml before a production build when you want absolute canonical links, sitemap.xml, rss.xml, robots.txt, and social image URLs.