Skip to content

Commit f205671

Browse files
committed
docs: re-include docs in workspaces with hoisted linker
Switch from isolated to hoisted Bun linker via bunfig.toml so Docus can be built as a workspace member. Bun 1.3.2+ defaults to isolated linker for new workspaces, which puts Docus's raw .ts server files under .bun/ symlinks where Nitro's rollup-plugin-inject fails. Updates ADR-0001 with the resolution and CLAUDE.md gotchas.
1 parent 5500e04 commit f205671

6 files changed

Lines changed: 3199 additions & 3568 deletions

File tree

CLAUDE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ Monorepo providing shared code style configurations for PleaseAI projects.
4242
- Config: `release-please-config.json` + `.release-please-manifest.json`
4343
- Publishing: GitHub Actions workflow publishes to npm on release
4444

45+
## Docs Site
46+
47+
- Located at `docs/` — Docus (Nuxt) deployed to Cloudflare Pages
48+
- Bun workspace member; build works because of `bunfig.toml` hoisted linker (see Gotchas)
49+
- Build: `cd docs && bun run build` → outputs to `docs/dist/`
50+
- Deploy: `cd docs && bun run deploy` (wrangler)
51+
- ADR: `docs/adr/0001-choose-documentation-framework.md`
52+
4553
## Gotchas
4654

4755
- `packages/perttier-config` directory is intentionally(?) misspelled — do not rename without coordinating release-please config, CI workflows, and npm package name
56+
- `bunfig.toml` sets `linker = "hoisted"` — required for Docus to build. Bun 1.3.2+ defaults to `isolated` linker in workspaces, which puts Docus's raw `.ts` server files under `.bun/` symlinks where Nitro's `rollup-plugin-inject` chokes on them. Hoisted linker (npm-style flat `node_modules`) avoids this.
57+
- Docs build requires `mcp: { enabled: false }` in `docs/nuxt.config.ts``@nuxtjs/mcp-toolkit` imports `agents/mcp` (Cloudflare Workers AI Agents) which breaks the `cloudflare_pages` preset.
58+
- Docus `cloudflare_pages` preset outputs to `dist/`, not `.output/public/``wrangler.jsonc` `pages_build_output_dir` must match.

0 commit comments

Comments
 (0)