Skip to content

Commit 1fa69eb

Browse files
committed
(杂项)升级主题版本
1 parent 1090173 commit 1fa69eb

File tree

6 files changed

+1766
-80
lines changed

6 files changed

+1766
-80
lines changed

docs/.vuepress/configs/plugins.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,15 @@ module.exports = [
2323
type: 'upgrade',
2424
before: info => `<UpgradePath title="${info}">`,
2525
after: '</UpgradePath>',
26+
}],
27+
['vuepress-plugin-comment', {
28+
choosen: 'valine',
29+
// options选项中的所有参数,会传给Valine的配置
30+
options: {
31+
el: '#valine-vuepress-comment',
32+
appId: 'cgJ5GOhJuv3gtBvk2cx2HkrG-gzGzoHsz',
33+
appKey: 'aocVRNRoq5fmjBX0flrBl3ph',
34+
placeholder: '评论系统公测中,👏欢迎体验!'
35+
}
2636
}]
27-
];
37+
]

docs/.vuepress/configs/themeConfig.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ module.exports = {
99
title: '文档公告',
1010
content: `我们经常发布文档更新,部分页面的翻译可能仍在进行中。有关最新信息,请访问<a href="/en/">英文文档</a>。如果某个页面上的翻译有问题,请提issues<a href="https://github.com/teadocs/numpy-cn/issues" target="_blank">告诉我们</a>。`
1111
}],
12-
// 评论设置
13-
comment: {
14-
enable: true
15-
},
16-
// 聊天面板配置
17-
chatRoom: {
12+
// 侧面板配置
13+
sidePanel: {
14+
enable: true,
15+
btnName: '快捷聊天室',
1816
title: 'NumPy 爱好者'
1917
},
2018
repo: 'teadocs/numpy-cn',

docs/.vuepress/styles/index.styl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,14 @@ pre.vue-container
2626
outline 0
2727

2828
.home .feature
29-
color #4e6e8e
29+
color #4e6e8e
30+
31+
@media (min-width: 1048px)
32+
#valine-vuepress-comment
33+
padding 25px
34+
box-sizing border-box
35+
36+
@media (max-width: 1048px)
37+
#valine-vuepress-comment
38+
.vlist
39+
padding 15px

docs/reference/distutils_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ NumPy Distutils预处理``.c.src``以自定义模板语言编写的C源文件(
250250

251251
在以下模板源示例中,上述规则可能更清晰:
252252

253-
``` NumPyC
253+
``` C
254254
/* TIMEDELTA to non-float types */
255255

256256
/**begin repeat

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"@vuepress/theme-vue": "^1.0.2",
3434
"vue-toasted": "^1.1.25",
3535
"vuepress": "^1.0.2",
36+
"vuepress-plugin-comment": "^0.7.0-beta.1",
3637
"vuepress-plugin-flowchart": "^1.4.2",
37-
"vuepress-theme-teadocs": "^1.3.3"
38+
"vuepress-theme-teadocs": "^1.3.6"
3839
}
3940
}

0 commit comments

Comments
 (0)