Skip to content

Commit 048a8fc

Browse files
ulivzyyx990803
authored andcommitted
docs: bump Vuepress & enable sw-update popup (vuejs#2116)
1 parent 414ac5f commit 048a8fc

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

docs/.vuepress/config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ module.exports = {
2525
selectText: 'Languages',
2626
lastUpdated: 'Last Updated',
2727
editLinkText: 'Edit this page on GitHub',
28+
serviceWorker: {
29+
updatePopup: {
30+
message: "New content is available.",
31+
buttonText: "Refresh"
32+
}
33+
},
2834
nav: [
2935
{
3036
text: 'Guide',
@@ -108,6 +114,12 @@ module.exports = {
108114
selectText: '选择语言',
109115
lastUpdated: '上次编辑时间',
110116
editLinkText: '在 GitHub 上编辑此页',
117+
serviceWorker: {
118+
updatePopup: {
119+
message: "发现新内容可用",
120+
buttonText: "刷新"
121+
}
122+
},
111123
nav: [
112124
{
113125
text: '指南',
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
"request-promise-native": "^1.0.5",
6868
"rimraf": "^2.6.2",
6969
"semver": "^5.5.0",
70-
"vuepress": "^0.11.0",
71-
"vuepress-theme-vue": "^1.0.3",
70+
"vuepress": "^0.14.0",
71+
"vuepress-theme-vue": "^1.1.0",
7272
"yorkie": "^1.0.2"
7373
},
7474
"resolutions": {

0 commit comments

Comments
 (0)