VitePress
134 字小于 1 分钟
2026-05-20
创建项目
npm add -D vitepress
//VitePress 附带一个命令行设置向导,可以帮助你构建一个基本项目。
//安装后,通过运行以下命令启动向导:
npx vitepress init┌ Welcome to VitePress!
│
◇ Where should VitePress initialize the config?
│ ./docs
│
◇ Site title:
│ My Awesome Project
│
◇ Site description:
│ A VitePress Site
│
◆ Theme:
│ ● Default Theme (Out of the box, good-looking docs)
│ ○ Default Theme + Customization
│ ○ Custom Theme
└Add side bar generator.js
node sidebar-generator.jsnpm run docs:dev数学支持
npm add -D markdown-it-mathjax3export default {
markdown: {
math: true
}
}