Skip to content

Commit

Permalink
更新开发文档及依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
XTsat committed May 13, 2023
1 parent f9743bf commit 79fdcb0
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 168 deletions.
59 changes: 56 additions & 3 deletions docs/development/文档开发.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,67 @@

Clone 本仓库

在项目文件夹下运行:
### 在本地启动服务器来开发你的文档网站

<CodeGroup>
<CodeGroupItem title="PNPM">

```pnpm
pnpm docs:dev
```

</CodeGroupItem>

<CodeGroupItem title="YARN">

```yarn
yarn install
yarn docs:dev
```

更新框架及插件(更新可能遇到兼容性问题)
</CodeGroupItem>

<CodeGroupItem title="NPM">

```npm
npm run docs:dev
```

</CodeGroupItem>
</CodeGroup>

VuePress 会在 [http://localhost:8080](http://localhost:8080) 启动一个热重载的开发服务器。当你修改你的 Markdown 文件时,浏览器中的内容也会自动更新。

### 更新框架及插件(更新不全面可能遇到兼容性问题)

更新 VuePress2 的助手

<CodeGroup>
<CodeGroupItem title="PNPM">

```pnpm:no-line-numbers
pnpm dlx vp-update
```

</CodeGroupItem>

<CodeGroupItem title="YARN">

```yarn:no-line-numbers
yarn dlx vp-update
```

</CodeGroupItem>

<CodeGroupItem title="NPM">

```NPM:no-line-numbers
npx vp-update
```

</CodeGroupItem>
</CodeGroup>

手动更新

<CodeGroup>
<CodeGroupItem title="PNPM">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@vuepress/client": "2.0.0-beta.62",
"@vuepress/plugin-search": "2.0.0-beta.62",
"vue": "^3.3.1",
"vue": "^3.3.2",
"vuepress": "2.0.0-beta.62"
}
}
Loading

0 comments on commit 79fdcb0

Please sign in to comment.