diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 6f81736..740c34b 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -2,8 +2,9 @@ module.exports = { title: "PHP程序员的FreeSWITCH开发文档", description: "一个PHP程序在做FreeSWITCH相关的应用开发时积累的技术文档", dest: "dist", + plugins: ["@vuepress/back-to-top"], themeConfig: { - lastUpdated: '上次更新', + lastUpdated: "上次更新", displayAllHeaders: false, sidebar: [ { @@ -85,5 +86,5 @@ module.exports = { sidebarDepth: 0, // 可选的, 默认值是 1 }, ], - } + }, }; diff --git a/package.json b/package.json index dc8cfb6..a74099e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "author": "wandoubaba", "license": "MIT", "devDependencies": { + "@vuepress/plugin-back-to-top": "^1.9.9", "vuepress": "^1.9.9" }, "scripts": { diff --git a/yarn.lock b/yarn.lock index 35d85d0..278e3ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1477,6 +1477,14 @@ "@vuepress/types" "1.9.9" lodash.debounce "^4.0.8" +"@vuepress/plugin-back-to-top@^1.9.9": + version "1.9.9" + resolved "https://registry.yarnpkg.com/@vuepress/plugin-back-to-top/-/plugin-back-to-top-1.9.9.tgz#eedd5b08e11790cd994636b458188fd40205e967" + integrity sha512-8bNsdZ0Dr96OdcoJ67dxCx1ysXpeTHma8w+YSsqBJoWGEOucBr0nW9oaDH85yoOtpiriWBlhUO32/Q0ojJtMfA== + dependencies: + "@vuepress/types" "1.9.9" + lodash.debounce "^4.0.8" + "@vuepress/plugin-last-updated@1.9.9": version "1.9.9" resolved "https://registry.yarnpkg.com/@vuepress/plugin-last-updated/-/plugin-last-updated-1.9.9.tgz#a7cb5f39b2793c8d113de08a514c316c26cc38c1"