迁移 VuePress Theme Hope 至 V2

迁移 VuePress Theme Hope 至 V2
This commit is contained in:
狮子耗耗 2024-02-05 21:12:12 +08:00
parent 0627284b91
commit 0a69ec2137
4 changed files with 1811 additions and 20579 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
node_modules/
.yarn
src/.vuepress/.cache/
src/.vuepress/.temp/
src/.vuepress/dist/

22297
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,18 +5,22 @@
"license": "GPL-3.0",
"type": "module",
"scripts": {
"docs:build": "vuepress build src",
"docs:clean-dev": "vuepress dev src --clean-cache",
"docs:dev": "vuepress dev src",
"docs:build": "vuepress-vite build src",
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress-vite dev src",
"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"
},
"volta": {
"node": "16.20.2"
"node": "18.19.0",
"npm": "10.4.0"
},
"dependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.2",
"vue": "^3.2.47",
"vuepress": "^2.0.0-rc.2",
"vuepress-theme-hope": "^2.0.0-rc.21"
},
"devDependencies": {
"@vuepress/plugin-feed": "^2.0.0-rc.10"
}
}

View File

@ -54,23 +54,14 @@ export default hopeTheme({
mdEnhance: {
align: true,
attrs: true,
chart: true,
codetabs: true,
demo: false,
echarts: true,
component: true,
demo: true,
figure: true,
flowchart: false,
gfm: true,
imgLazyload: true,
imgSize: true,
include: true,
katex: true,
mark: true,
mermaid: true,
playground: {
presets: ["ts", "vue"],
},
presentation: ["highlight", "math", "search", "notes", "zoom"],
stylize: [
{
matcher: "Recommended",
@ -88,7 +79,44 @@ export default hopeTheme({
sup: true,
tabs: true,
vPre: true,
vuePlayground: false,
// install chart.js before enabling it
// chart: true,
// insert component easily
// install echarts before enabling it
// echarts: true,
// install flowchart.ts before enabling it
// flowchart: true,
// gfm requires mathjax-full to provide tex support
// gfm: true,
// install katex before enabling it
// katex: true,
// install mathjax-full before enabling it
// mathjax: true,
// install mermaid before enabling it
// mermaid: true,
// playground: {
// presets: ["ts", "vue"],
// },
// install reveal.js before enabling it
// revealJs: {
// plugins: ["highlight", "math", "search", "notes", "zoom"],
// },
// install @vue/repl before enabling it
// vuePlayground: true,
// install sandpack-vue3 before enabling it
// sandpack: true,
},
},
});