Appearance
Docs Site Deployment (docs.rustchat.io)
This guide describes how to deploy the documentation site from GitHub to Cloudflare Pages using Cloudflare's native Git integration.
Overview
- Source of truth:
docs/directory in this repository - Static site generator: VitePress
- CI quality checks:
.github/workflows/docs-ci-cd.yml - Deployment method: Cloudflare Pages Git integration (no GitHub deployment secrets)
1. Create a Cloudflare Pages Project
In Cloudflare Dashboard:
- Go to
Workers & Pages - Create a new
Pagesproject - Connect it to your repository for automatic deploys from
main - Note the project name (for example
rustchat-docs)
2. Connect GitHub Repository
In the Pages project:
- Open
Settings->Build & deployments - Connect the
kubedoio/rustchatrepository - Configure build:
- Root directory:
docs - Build command:
npm ci --ignore-scripts && npm run ci - Build output directory:
.vitepress/dist
- Root directory:
3. Workflow Behavior
- On pull requests: runs docs link checks and builds the VitePress site.
- On push to
main: Cloudflare Pages deploys from the connected repository. - GitHub Actions stays as an independent quality gate.
4. Configure Custom Domain
In the Pages project:
- Open
Custom domains - Add
docs.rustchat.io - Complete DNS validation if required
Cloudflare manages TLS automatically once the domain is attached.
5. Manual Validation
bash
cd docs
npm ci
npm run docs:check-links
npm run docs:buildIf CI succeeds and Cloudflare Git integration is active, docs.rustchat.io updates automatically after merge to main.