Publishing
The documentation site is built with VitePress and published through Cloudflare Pages.
Source of Truth
text
Repository
-> docs/book
-> docs/book/.vitepress
-> docs/book/public
Build output
-> dist/docs-book
Public docs
-> docs.monopolyfun.appBuild Command
bash
pnpm docs:book:buildLocal preview:
bash
pnpm docs:book:devGitHub Actions
Workflow:
text
.github/workflows/cloudflare-pages-docs.ymlTriggers:
| Trigger | Description |
|---|---|
push to master | Only docs/book, scripts/docs, package, lockfile, or workflow changes |
| workflow_dispatch | Manual publish |
Secrets:
text
CLOUDFLARE_API_TOKEN
CLOUDFLARE_ACCOUNT_IDCloudflare Pages
| Setting | Value |
|---|---|
| Project name | monopolyfun-docs |
| Production branch | master |
| Framework preset | None |
| Build command | pnpm docs:book:build |
| Build output directory | dist/docs-book |
| Custom domain | docs.monopolyfun.app |
Manual Deploy
bash
pnpm docs:book:deployThe command builds dist/docs-book and runs Wrangler Pages deploy.