Quick Start
Environment Requirements
- Node.js >= 18.0.0
- npm >= 9.0.0
Install Dependencies
bash
npm installDevelopment Mode
Start the development server:
bash
npm run devVisit http://localhost:5173 to view the website.
Build
Build for production:
bash
npm run buildThe build output will be in the docs/.vitepress/dist directory.
Preview
Preview the production build:
bash
npm run previewAdding Documentation
- Create
.mdfiles indocs/guide/ordocs/api/directories - Update navigation and sidebar configuration in
docs/.vitepress/config.ts - Restart the development server to see the changes
Custom Configuration
Edit the docs/.vitepress/config.ts file to customize:
- Site title and description
- Navigation menu
- Sidebar
- Theme configuration
- Social links And more