Hosting Zensical on Cloudflare Pages
1. Init your fresh Zensical project locally
pip install zensical
zensical new my-docs
cd my-docs
git init
git remote add origin https://github.com/yourusername/my-docs.git
git push -u origin main
2. Connect to Cloudflare Pages (one-time)
- Cloudflare Dashboard → Workers & Pages → Create application → Pages → Connect to Git
- Authorize GitHub, select your repo
- Set build settings:
- Framework preset: None installed
- Build command:
pip install zensical && zensical build --clean - Build output directory:
site - Click Save and Deploy
3. Add your custom domain
Once the first deploy succeeds, go to your Pages project → Custom domains → Set up a custom domain → enter docs.mydomain.me. Since your domain is already on Cloudflare, it adds the DNS record for you automatically.