This directory contains the VitePress documentation site for Relax.
- 📚 Bilingual documentation (English & Chinese)
- 🎨 Beautiful VitePress theme with custom branding
- 🔍 Full-text search support
- 🖼️ Image zoom functionality - Click any image to view it in full size
- 📊 Mermaid diagram support
- 🌓 Dark mode support
# Install dependencies
npm install
# Start dev server
npm run docs:dev
# Build for production
npm run docs:build
# Preview production build
npm run docs:previewdocs/
├── .vitepress/
│ ├── config.mts # VitePress configuration
│ └── theme/ # Custom theme
├── public/ # Static assets
├── en/ # English documentation
│ ├── guide/ # English guides
│ │ ├── introduction.md
│ │ ├── installation.md
│ │ ├── quick-start.md
│ │ └── ...
│ ├── api/ # API documentation
│ ├── examples/ # Example documentation
│ └── index.md # English homepage
├── zh/ # Chinese documentation
│ ├── guide/ # Chinese guides
│ ├── api/ # API documentation
│ ├── examples/ # Example documentation
│ └── index.md # Chinese homepage
├── draft/ # Draft documentation
│ ├── design.md
│ ├── metrics_service_usage.md
│ └── ...
└── index.md # Root homepage (defaults to Chinese)
- Create a new markdown file in the appropriate directory
- Add the page to the sidebar in
.vitepress/config.mts - Add translations if needed
All images in the documentation support click-to-zoom functionality powered by medium-zoom.
Usage:
- Hover over any image to see the zoom cursor
- Click to enlarge the image
- Click again or press ESC to close
Documentation:
The documentation can be deployed to:
- GitHub Pages
- Vercel
- Netlify
- Any static hosting service
See VitePress deployment guide for details.