From 8c0d9e3ea5799fd0015a5880dd46d85759524880 Mon Sep 17 00:00:00 2001 From: wxsm Date: Sun, 15 Aug 2021 21:48:21 +0800 Subject: [PATCH 1/4] feat: enable edit link --- src/.vuepress/config.js | 2 +- src/.vuepress/theme/components/Page.vue | 2 +- src/.vuepress/theme/components/PageEdit.vue | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 66fbad14a..ab1103a7f 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -490,7 +490,7 @@ module.exports = { ], repo: 'vuejs/docs-next-zh-cn', editLinks: true, - editLinkText: '在 GitHub 上编辑', + editLinkText: '在 GitHub 上编辑此页', lastUpdated: '最近更新时间', docsDir: 'src', sidebarDepth: 2, diff --git a/src/.vuepress/theme/components/Page.vue b/src/.vuepress/theme/components/Page.vue index 06596268e..04ec7cb33 100644 --- a/src/.vuepress/theme/components/Page.vue +++ b/src/.vuepress/theme/components/Page.vue @@ -3,7 +3,7 @@ - + diff --git a/src/.vuepress/theme/components/PageEdit.vue b/src/.vuepress/theme/components/PageEdit.vue index c1386f6b8..4c35f3433 100644 --- a/src/.vuepress/theme/components/PageEdit.vue +++ b/src/.vuepress/theme/components/PageEdit.vue @@ -2,10 +2,10 @@