Deploying this Wiki¶
This wiki is a static site built with MkDocs + Material for MkDocs and hosted on Cloudflare Pages.
Workflow¶
flowchart LR
A[Edit Markdown<br/>on a branch] --> B[Open a PR]
B --> C[GitHub Action:<br/>mkdocs build --strict]
B --> D[Cloudflare Pages<br/>preview URL]
C & D --> E[Review & merge]
E --> F[Cloudflare deploys main<br/>to production]
- Create a branch, edit files in
docs/, and add new pages tonav:inmkdocs.yml. - Open a pull request. The Build wiki GitHub Action fails the PR if there are broken links or nav errors.
- Cloudflare Pages comments on the PR with a preview URL.
- Merge to
main. Cloudflare deploys to production automatically.
Run locally¶
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
mkdocs serve # open http://127.0.0.1:8000
One-time Cloudflare Pages setup¶
- Sign in at dash.cloudflare.com and go to Workers & Pages → Create → Pages → Connect to Git.
- Authorize GitHub and pick the
jac9s/anime-game-wikirepo. -
Build settings:
Setting Value Production branch mainFramework preset MkDocs (or None) Build command pip install -r requirements.txt && mkdocs buildBuild output directory siteEnvironment variable PYTHON_VERSION=3.12 -
Click Save and Deploy. The site goes live at
https://<project-name>.pages.dev. If you name the project something other thanriftbloom-wiki, updatesite_urlinmkdocs.yml. - (Optional) Add a custom domain under Custom domains.
Preview deployments for PRs are on by default with the Git integration.
Alternative: deploy with Wrangler¶
npm install -g wrangler
wrangler login
mkdocs build
wrangler pages deploy site --project-name riftbloom-wiki
wrangler.toml in the repo root already sets pages_build_output_dir = "site".