迁移 Vue-hope-theme 至 V2

This commit is contained in:
狮子耗耗 2024-02-12 17:05:24 +08:00
parent 9020e3268a
commit fb5c58ab8e
5 changed files with 1744 additions and 16190 deletions

View File

@ -2,7 +2,7 @@
## 开发
1. 依赖环境
- Node.js v16.20.2
- Node.js v20.11.0
- volta
1. 建议使用 [volta](https://volta.sh/) 安装 [Node.js](https://nodejs.org/)
```sh

17912
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,12 +10,12 @@
"docs:update-package": "npx vp-update"
},
"devDependencies": {
"@vuepress/client": "2.0.0-beta.66",
"vue": "^3.2.47",
"vuepress": "2.0.0-beta.66",
"vuepress-theme-hope": "2.0.0-beta.234"
"@vuepress/bundler-vite": "^2.0.0-rc.7",
"vue": "^3.4.18",
"vuepress": "2.0.0-rc.7",
"vuepress-theme-hope": "2.0.0-rc.23"
},
"volta": {
"node": "16.20.2"
"node": "20.11.0"
}
}

View File

@ -1,7 +1,12 @@
import { defineUserConfig } from "vuepress";
import theme from "./theme.js";
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from "vuepress"
import theme from "./theme.js"
export default defineUserConfig({
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),
base: "/jingji/sp/",
lang: "zh-CN",

View File

@ -70,7 +70,6 @@ export default hopeTheme({
playground: {
presets: ["ts", "vue"],
},
presentation: ["highlight", "math", "search", "notes", "zoom"],
stylize: [
{
matcher: "Recommended",