diff --git a/packages/vuepress-theme-reco/index.js b/packages/vuepress-theme-reco/index.js index 6835f6d..a222eff 100644 --- a/packages/vuepress-theme-reco/index.js +++ b/packages/vuepress-theme-reco/index.js @@ -54,6 +54,7 @@ module.exports = (options, ctx) => ({ } ] }], + 'vuepress-plugin-smooth-scroll', ['container', { type: 'tip', defaultTitle: { diff --git a/packages/vuepress-theme-reco/package.json b/packages/vuepress-theme-reco/package.json index a7ec03c..623cbbf 100644 --- a/packages/vuepress-theme-reco/package.json +++ b/packages/vuepress-theme-reco/package.json @@ -27,7 +27,8 @@ "@vuepress/plugin-medium-zoom": "1.5.0", "docsearch.js": "2.6.3", "md5": "2.2.1", - "vue-click-outside": "1.1.0" + "vue-click-outside": "1.1.0", + "vuepress-plugin-smooth-scroll": "^0.0.9" }, "gitHead": "c3a1db8487bece9341b6269a0f6ebf910cd5462a", "_from": "vuepress-theme-reco@0.2.1", diff --git a/yarn.lock b/yarn.lock index b24edab..7421e69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2457,10 +2457,6 @@ ascli@~1: asn1.js@^4.0.0: version "4.10.1" resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" asn1@~0.2.3: version "0.2.4" @@ -9321,7 +9317,7 @@ smart-buffer@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.1.0.tgz#91605c25d91652f4661ea69ccf45f1b331ca21ba" -smoothscroll-polyfill@^0.4.3: +smoothscroll-polyfill@^0.4.3, smoothscroll-polyfill@^0.4.4: version "0.4.4" resolved "https://registry.yarnpkg.com/smoothscroll-polyfill/-/smoothscroll-polyfill-0.4.4.tgz#3a259131dc6930e6ca80003e1cb03b603b69abf8" @@ -10383,8 +10379,6 @@ util.promisify@~1.0.0: util@0.10.3: version "0.10.3" resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" - dependencies: - inherits "2.0.1" util@^0.11.0: version "0.11.1" @@ -10621,6 +10615,13 @@ vuepress-plugin-smooth-scroll@^0.0.3: dependencies: smoothscroll-polyfill "^0.4.3" +vuepress-plugin-smooth-scroll@^0.0.9: + version "0.0.9" + resolved "http://r.npm.sankuai.com/vuepress-plugin-smooth-scroll/download/vuepress-plugin-smooth-scroll-0.0.9.tgz#6c5d01db60def3d7b976b53404e56b97da9e8f39" + integrity sha1-bF0B22De89e5drU0BOVrl9qejzk= + dependencies: + smoothscroll-polyfill "^0.4.4" + vuepress@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-1.5.0.tgz#690ed2b190844c2e53665df1e211a5fb107a8de7"