Deployment (Cloudflare)
publishing a wiki on Cloudflare
Cloudflare Pages builds a project's wiki from its repository with one build command, which installs
wiki-builder, checks the wiki and runs wiki publish.[1] If the check fails, the command stops and
nothing is published.[2] What wiki publish makes is described on wiki publish,
and the same guide for GitHub on Deployment (GitHub).
Build
The build command is one line.[1]
pip install "git+https://github.com/timothymarois/wiki-builder@TAG" && wiki check && wiki publish _site
wiki check exits with 1 when it finds any problem, so the command stops there.[2] wiki publish then
builds into _site, the folder Cloudflare serves.[3][4]
Settings
The project is created under Workers & Pages, with Create application, Pages and Connect to Git, and its build settings are entered then.[1]
| Setting | Value |
|---|---|
| Framework preset | none[?] |
| Build command | the command above[2] |
| Build output directory | _site[3] |
| Python version | the build image's default, newer than wiki-builder's 3.11 floor[5][6] |
| Custom domain | the subdomain, added under the project's custom domains[7] |
When the domain's zone is already on Cloudflare, adding the custom domain creates its DNS record.[7]