Getting Started
This guide demonstrates the features pre-configured in this template.
Code Groups with Icons
js
export default {
title: 'My App',
description: 'My app description',
}ts
import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'My App',
description: 'My app description',
})bash
pnpm install
pnpm docs:devMermaid Diagrams
Image Zoom
Click the image below to see the zoom effect.
Local Search
This template comes with built-in full-text local search. Press Ctrl+K (or Cmd+K on Mac) to open the search dialog and try it now.
Math Equations (optional)
If you need math support, add markdown-it-mathjax3 to your dependencies and configure it in config.ts.
Customization
- Replace
YOUR_REPOplaceholders inconfig.tsanddeploy.ymlwith your actual GitHub repo. - Set up your Giscus comment configuration in
GiscusComment.vue. - Customize the logo by replacing
docs/.vitepress/public/logo.svg. - Add your own pages under the
docs/directory.