
下载主题源码方式使用主题
使用下载主题源码方式使用主题,把主题文件放到项目主题目录。
- 主题 Github 源码仓库:https://github.com/mosongcc/vitepress-theme
- 主题 Gitee 源码仓库:https://gitee.com/mosongcc/vitepress-theme
步骤一:
通过Git仓库下载最新zip包。
步骤二:
新建VitePress项目。
目录结构:
.
├─ docs
│ ├─ .vitepress
│ │ └─ config.js
│ ├─ api-examples.md
│ ├─ markdown-examples.md
│ └─ index.md
└─ package.json
步骤三:
主题源码放到主题docs/.vitepress/theme/
目录。
目录结构:
.
├─ docs
│ ├─ .vitepress
│ ├─ theme
│ │ └─ config.js
│ ├─ api-examples.md
│ ├─ markdown-examples.md
│ └─ index.md
└─ package.json
步骤四:
启动服务,验证功能。