Cloudflare Pages¶
Cloudflare Pages is the recommended public deployment target for the AIERP docs site.
Recommended DNS Layout¶
- application:
pos-v2.aabhat.com - documentation:
docs.aierp.aabhat.com
Keep those separate so the app and docs can evolve independently.
Project Name¶
Create the Pages project as:
aierp-pos-ui-docs
Build Configuration¶
Build command¶
Output directory¶
Custom Domain¶
Attach:
docs.aierp.aabhat.com
Do not reuse pos-v2.aabhat.com for the documentation site.
Notes For This Repo¶
mkdocs.ymlis already configured withsite_url: https://docs.aierp.aabhat.com.github/workflows/docs-deploy.ymlbuilds and deploys the docs site through Cloudflare Pages- if you later need preview or internal variants, keep this as the public default
Cloudflare Pages Checklist¶
- Create API token in Cloudflare:
My Profile -> API Tokens -> Create Token -> Edit Cloudflare Workers- Get your Account ID from the Cloudflare dashboard sidebar.
- Add GitHub Actions secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID- Create the Pages project:
aierp-pos-ui-docs- Add the custom domain:
docs.aierp.aabhat.com- Let the GitHub Actions workflow publish the built site.
- Test navigation, search, Mermaid, and animation JS after deploy.