修复点击链接后会弹出404界面的问题

修复点击链接后会弹出404界面的问题,可能为viteBundler未正常引入导致
This commit is contained in:
狮子耗耗 2024-02-09 11:01:52 +08:00
parent b28f1476f7
commit b150a3eece
4 changed files with 1566 additions and 20336 deletions

21849
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,12 +11,16 @@
"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",
"katex": "^0.16.9",
"vue": "^3.4.17",
"vuepress": "^2.0.0-rc.7",
"vuepress-theme-hope": "2.0.0-rc.23"
},
"volta": {
"node": "20.11.0"
},
"dependencies": {
"vuepress-plugin-md-enhance": "^2.0.0-rc.23"
}
}

View File

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

View File

@ -41,36 +41,26 @@ export default hopeTheme({
},
plugins: {
// You should generate and use your own comment service
// comment: {
// provider: "Giscus",
// repo: "vuepress-theme-hope/giscus-discussions",
// repoId: "R_kgDOG_Pt2A",
// category: "Announcements",
// categoryId: "DIC_kwDOG_Pt2M4COD69",
// },
// All features are enabled for demo, only preserve features you need here
mdEnhance: {
align: true,
attrs: true,
chart: true,
chart: false,
codetabs: true,
demo: false,
echarts: true,
echarts: false,
figure: true,
flowchart: false,
gfm: true,
gfm: false,
imgLazyload: true,
imgSize: true,
include: true,
katex: true,
mark: true,
mermaid: true,
mermaid: false,
playground: {
presets: ["ts", "vue"],
},
presentation: ["highlight", "math", "search", "notes", "zoom"],
stylize: [
{
matcher: "Recommended",