Skip to content

Commit 293280a

Browse files
committed
feat(@142vip/vuepress): 升级vuepress主题依赖,修复配置错误和build命令异常
1 parent fe3ad4d commit 293280a

File tree

3 files changed

+770
-325
lines changed

3 files changed

+770
-325
lines changed

packages/vuepress/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
},
3434
"devDependencies": {
3535
"@vue/repl": "^4.3.1",
36-
"@vuepress/bundler-vite": "2.0.0-rc.15",
36+
"@vuepress/bundler-vite": "2.0.0-rc.17",
3737
"@vuepress/plugin-markdown-image": "2.0.0-rc.30",
38+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.47",
39+
"@vuepress/plugin-redirect": "2.0.0-rc.8",
3840
"dashjs": "^4.7.4",
3941
"hls.js": "^1.5.13",
4042
"mermaid": "^10.9.1",
@@ -44,9 +46,9 @@
4446
"unicorn-magic": "^0.3.0",
4547
"vidstack": "^1.11.30",
4648
"vue": "^3.5.8",
47-
"vuepress": "2.0.0-rc.15",
48-
"vuepress-plugin-search-pro": "2.0.0-rc.53",
49-
"vuepress-theme-hope": "2.0.0-rc.53"
49+
"vuepress": "2.0.0-rc.17",
50+
"vuepress-plugin-search-pro": "2.0.0-rc.57",
51+
"vuepress-theme-hope": "2.0.0-rc.56"
5052
},
5153
"publishConfig": {
5254
"access": "public",

packages/vuepress/src/core/theme-plugins.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,18 @@ export const baseThemePluginOptions = {
5757
// }),
5858
// 代码块
5959
mdEnhance: {
60-
// card:true,
61-
codetabs: true,
6260
// 支持任务列表
6361
tasklist: true,
6462
playground: {
6563
presets: ['ts', 'vue'],
6664
},
67-
// revealjs: ["highlight", "math", "search", "notes", "zoom"],
65+
// revealjs: [
66+
// 'highlight',
67+
// 'math',
68+
// 'search',
69+
// 'notes',
70+
// 'zoom',
71+
// ],
6872
// stylize: [
6973
// {
7074
// matcher: 'Recommended',
@@ -81,7 +85,6 @@ export const baseThemePluginOptions = {
8185
// ],
8286
sub: true,
8387
sup: true,
84-
tabs: true,
8588
vPre: true,
8689
vuePlayground: true,
8790
// 文件导入配置别名
@@ -115,6 +118,9 @@ export const baseThemePluginOptions = {
115118
'/': searchProCNLocals,
116119
},
117120
},
121+
// 参考:https://theme-hope.vuejs.press/zh/config/plugins/others.html#markdowntab
122+
markdownTab: true,
123+
nprogress: true,
118124
// 代码高亮:https://theme-hope.vuejs.press/zh/guide/feature/code-block.html
119125
shiki: {
120126
langs: [

0 commit comments

Comments
 (0)