Skip to content

Commit 7ea7e89

Browse files
authored
Merge pull request #154 from chua-n/feature/update-vuepress-dependency
update vuepress dependency
2 parents 70da08c + dc2d351 commit 7ea7e89

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

book/.vuepress/styles/config.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// you can change config here
2-
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50,
3-
#7f8c8d !default;
4-
//$theme-colors: #3eaf7c, #2196f3, #f26d6d, #fb9b5f;
2+
$theme-color: #6a005f;
3+
$theme-colors: #3eaf7c, #2196f3, #f26d6d, #fb9b5f;
4+
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50, #7f8c8d !default;

book/.vuepress/styles/index.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// place your custom styles here
2-
@import "./palette";
2+
@import "./config";
33

44
// 行内代码块,加粗,斜体都采用主题色
55
code, strong, em {
@@ -22,11 +22,6 @@ ol, ul {
2222
padding-inline-start: 2em;
2323
}
2424

25-
/* fix 侧边栏中文件与文件夹平级时,两者的竖向对齐不准(不晓得有没有副作用) */
26-
.vp-sidebar-heading, .vp-sidebar-link {
27-
margin-inline: unset;
28-
}
29-
3025
/* 表格居中对齐 */
3126
table {
3227
display: table;
@@ -39,6 +34,11 @@ table {
3934
margin: auto;
4035
}
4136

37+
/* 表格里的图片不能在页面中盲目扩张 */
38+
.theme-hope-content table img {
39+
max-width: 100%;
40+
}
41+
4242
/* markdown中有序列表中序号表示符,第 1~4 级依次设定为阿拉伯数字、小写英文字母、小写罗马字母、小写希腊字母 */
4343
ol {
4444
list-style-type: decimal;

book/.vuepress/styles/palette.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
// you can change colors here
2-
$theme-color: #6a005f;
3-
$font-family: 'Cambria, -apple-system, 华文中宋, "PingFang SC", "思源宋体 CN Medium", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif';
4-
$font-family-heading: $font-family;
1+
$vp-font: 'Cambria, -apple-system, 华文中宋, "PingFang SC", "思源宋体 CN Medium", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif';
2+
$vp-font-heading: $vp-font;

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@
1313
"docs:update-package": "pnpm dlx vp-update"
1414
},
1515
"devDependencies": {
16-
"@vuepress/bundler-webpack": "2.0.0-rc.9",
17-
"@vuepress/plugin-pwa": "2.0.0-rc.23",
18-
"@waline/client": "^3.1.3",
16+
"@vuepress/bundler-webpack": "2.0.0-rc.18",
17+
"@vuepress/plugin-pwa": "2.0.0-rc.57",
18+
"@waline/client": "^3.3.2",
1919
"copy-webpack-plugin": "^12.0.2",
20-
"katex": "^0.16.10",
21-
"sass-loader": "^14.1.1",
22-
"vue": "^3.4.21",
23-
"vuepress": "2.0.0-rc.9",
24-
"vuepress-plugin-search-pro": "2.0.0-rc.33",
25-
"vuepress-theme-hope": "2.0.0-rc.33"
20+
"katex": "^0.16.11",
21+
"sass-embedded": "^1.80.6",
22+
"sass-loader": "^16.0.3",
23+
"vue": "^3.5.12",
24+
"vuepress": "2.0.0-rc.18",
25+
"vuepress-plugin-search-pro": "2.0.0-rc.59",
26+
"vuepress-theme-hope": "2.0.0-rc.59"
2627
},
2728
"dependencies": {
28-
"@vuepress/plugin-blog": "2.0.0-rc.23",
29-
"@vuepress/plugin-feed": "2.0.0-rc.23",
30-
"@vuepress/plugin-search": "2.0.0-rc.21",
31-
"nodejs-jieba": "^0.1.2"
29+
"@vuepress/plugin-blog": "2.0.0-rc.57",
30+
"@vuepress/plugin-feed": "2.0.0-rc.57",
31+
"@vuepress/plugin-search": "2.0.0-rc.55",
32+
"nodejs-jieba": "^0.2.1"
3233
}
3334
}

0 commit comments

Comments
 (0)