Skip to content

Create a VitePress Project

This repository uses VitePress in root-directory mode. Markdown pages live in the repository root, while the VitePress configuration lives in .vitepress/config.mts.

Key Configuration

title and description control the site metadata:

ts
export default defineConfig({
  lang: 'zh-CN',
  title: 'HideApps Docs',
  description: 'VitePress + Cloudflare Pages deployment guide'
})

The production domain is used for the sitemap:

ts
sitemap: {
  hostname: 'https://docs.hideapps.top'
}

Local search is enabled with:

ts
search: {
  provider: 'local'
}

Writing Pages

Create new Markdown files under guide/ or reference/, then add the route to the locale sidebar in .vitepress/config.mts.

Recommended paths:

text
en/guide/new-topic.md
en/reference/new-reference.md

Static Files

Files in public/ are copied as-is to the build output. Cloudflare Pages reads the final site from .vitepress/dist.

Built with VitePress and Cloudflare Pages.