Before You Start
This guide publishes a VitePress documentation site to Cloudflare Pages and uses this production domain:
text
https://docs.hideapps.topWhat You Need
- A Git repository you can push to, preferably on GitHub.
- A Cloudflare account.
- DNS management access for hideapps.top.
- A local Node.js environment. Use the same major version in Cloudflare Pages when possible.
Project Structure
text
.
├─ .vitepress/
│ ├─ config.mts
│ └─ theme/
├─ guide/
├─ reference/
├─ public/
├─ package.json
└─ wrangler.tomlLocal Commands
Install dependencies:
bash
npm installStart the development server:
bash
npm run devBuild the static site:
bash
npm run buildThe build output is:
text
.vitepress/distNext: create and maintain the VitePress project content.