๐๏ธ Architecture โ
This page introduces the technical architecture and design of the project.
Tech Stack โ
| Tech | Purpose | Version |
|---|---|---|
| VitePress | Static site generator | 1.x |
| Vue 3 | UI components (built-in) | 3.x |
| Vite | Build tool (built-in) | 5.x |
| Markdown It | Markdown parser | - |
Architecture โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ VitePress Engine โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ config.ts โ theme/ โ public/โ
โ Site config โ Theme โ Assets โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโค
โ Markdown Docs โ
โ guide/ โ dev/ โ en/ โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโค
โ Build Output (dist) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโCore Modules โ
Config System (config.ts) โ
Controls site metadata, navigation, sidebar, i18n routing, search, and theming.
Theme System (theme/) โ
Extends the default VitePress theme:
index.ts- Theme entry, register custom componentsstyle.css- CSS variable overrides
Content System โ
Markdown docs organized by language and category:
guide/- User guidesdev/- Developer documentationen/- English version (mirrors Chinese structure)
Build Flow โ
Markdown โ Markdown It โ Vue SFC โ Vite Build โ Static HTML- Parse Markdown It converts
.mdto HTML - Compile Vue SFC compilation for component support
- Build Vite bundles and optimizes
- SSR Pre-renders each page to static HTML (SEO friendly)
Deployment โ
Recommended platforms:
- GitHub Pages - Free, ideal for open source
- Vercel - Auto-deploy with CDN
- Netlify - Feature-rich, similar to Vercel