项目说明
SSMT4-Documents项目基于VitePress2.0系列开发
安装vitepress
bun add -D vitepress@next
初始化项目
bun vitepress init
初始化参数
点击展开
PS D:\Dev\SSMT4-Documents> bun vitepress init
T Welcome to VitePress!
|
o Where should VitePress initialize the config?
| ./docs
|
o Where should VitePress look for your markdown files?
| ./docs
|
o Site title:
| SSMT4-Documents
|
o Site description:
| Documents for SSMT4
|
o Theme:
| Default Theme
|
o Use TypeScript for config and theme files?
| Yes
|
o Add VitePress npm scripts to package.json?
| Yes
|
o Add a prefix for VitePress npm scripts?
| Yes
|
o Prefix for VitePress npm scripts:
| docs
|
— Done! Now run bun run docs:dev and start writing.
PS D:\Dev\SSMT4-Documents>运行测试
bun run docs:dev
开始写文档
第一次克隆后,需要进入项目目录中初始化vitepress环境
bun install后续即可随时本地测试
bun run docs:dev