mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
58 lines
1.0 KiB
Handlebars
58 lines
1.0 KiB
Handlebars
# {{ name }}
|
|
|
|
网站使用 [vuepress](https://vuepress.vuejs.org/) 和 [vuepress-theme-plume](https://github.com/pengzhanbo/vuepress-theme-plume) 构建生成。
|
|
|
|
## Install
|
|
|
|
```sh
|
|
{{#if (equal packageManager "pnpm")}}
|
|
pnpm i
|
|
{{else if (equal packageManager "yarn")}}
|
|
yarn
|
|
{{else}}
|
|
npm i
|
|
{{/if}}
|
|
```
|
|
|
|
## Usage
|
|
|
|
{{#if (equal packageManager "pnpm")}}
|
|
```sh
|
|
# 启动开发服务
|
|
pnpm docs:dev
|
|
# 构建生产包
|
|
pnpm docs:build
|
|
# 本地预览生产服务
|
|
pnpm docs:preview
|
|
# 更新 vuepress 和主题
|
|
pnpm vp-update
|
|
```
|
|
{{else if (equal packageManager "yarn")}}
|
|
```sh
|
|
# 启动开发服务
|
|
yarn docs:dev
|
|
# 构建生产包
|
|
yarn docs:build
|
|
# 本地预览生产服务
|
|
yarn docs:preview
|
|
# update vuepress and theme
|
|
yarn vp-update
|
|
```
|
|
{{else}}
|
|
```sh
|
|
# 启动开发服务
|
|
npm run docs:dev
|
|
# 构建生产包
|
|
npm run docs:build
|
|
# 本地预览生产服务
|
|
npm run docs:preview
|
|
# 更新 vuepress 和主题
|
|
npm run vp-update
|
|
```
|
|
{{/if}}
|
|
|
|
## 文档
|
|
|
|
- [vuepress](https://vuepress.vuejs.org/)
|
|
- [vuepress-theme-plume](https://theme-plume.vuejs.press/)
|