Skip to content

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.app

Build Command

bash
pnpm docs:book:build

Local preview:

bash
pnpm docs:book:dev

GitHub Actions

Workflow:

text
.github/workflows/cloudflare-pages-docs.yml

Triggers:

TriggerDescription
push to masterOnly docs/book, scripts/docs, package, lockfile, or workflow changes
workflow_dispatchManual publish

Secrets:

text
CLOUDFLARE_API_TOKEN
CLOUDFLARE_ACCOUNT_ID

Cloudflare Pages

SettingValue
Project namemonopolyfun-docs
Production branchmaster
Framework presetNone
Build commandpnpm docs:book:build
Build output directorydist/docs-book
Custom domaindocs.monopolyfun.app

Manual Deploy

bash
pnpm docs:book:deploy

The command builds dist/docs-book and runs Wrangler Pages deploy.

Released under the MIT License.