From 8eb91e4d67ee3ae1cbbffd66102f20431591660f Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 25 Mar 2019 00:00:31 +0800 Subject: [PATCH] docs: fix --- docs/.vuepress/config.js | 11 ++++++++++- docs/.vuepress/styles/index.styl | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 1ad77c5ff2..ae1831b1e5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -5,7 +5,16 @@ module.exports = { }, '@vuepress/pwa': { serviceWorker: true, - updatePopup: true, + updatePopup: { + '/': { + message: '发现新内容可用', + buttonText: '刷新', + }, + '/en/': { + message: 'New content is available', + buttonText: 'Refresh', + }, + }, }, '@vuepress/back-to-top': true, '@vuepress/clean-urls': true, diff --git a/docs/.vuepress/styles/index.styl b/docs/.vuepress/styles/index.styl index d72430ef23..722198224b 100644 --- a/docs/.vuepress/styles/index.styl +++ b/docs/.vuepress/styles/index.styl @@ -34,3 +34,7 @@ a { #关于 { display: none; } + +.global-ui .sw-update-popup { + border: 1px solid #F5712C; +}