Skip to content

Commit ccbff92

Browse files
committed
feat($theme-default): use plugin-smooth-scroll (close vuejs#567)
1 parent 13aa8e4 commit ccbff92

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

packages/@vuepress/theme-default/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module.exports = (options, ctx) => ({
4141
'/': 'WARNING',
4242
'/zh/': '警告'
4343
}
44-
}]
44+
}],
45+
'smooth-scroll'
4546
]
4647
})

packages/@vuepress/theme-default/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"lodash": "^4.17.15",
3838
"stylus": "^0.54.5",
3939
"stylus-loader": "^3.0.2",
40-
"vuepress-plugin-container": "^2.0.0"
40+
"vuepress-plugin-container": "^2.0.0",
41+
"vuepress-plugin-smooth-scroll": "^0.0.3"
4142
}
4243
}

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -10461,6 +10461,11 @@ [email protected]:
1046110461
version "4.0.2"
1046210462
resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.0.2.tgz#5207858c3815cc69110703c6b94e46c15634395d"
1046310463

10464+
smoothscroll-polyfill@^0.4.3:
10465+
version "0.4.4"
10466+
resolved "https://registry.yarnpkg.com/smoothscroll-polyfill/-/smoothscroll-polyfill-0.4.4.tgz#3a259131dc6930e6ca80003e1cb03b603b69abf8"
10467+
integrity sha512-TK5ZA9U5RqCwMpfoMq/l1mrH0JAR7y7KRvOBx0n2869aLxch+gT9GhN3yUfjiw+d/DiF1mKo14+hd62JyMmoBg==
10468+
1046410469
snapdragon-node@^2.0.1:
1046510470
version "2.1.1"
1046610471
resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b"
@@ -11990,6 +11995,13 @@ vuepress-plugin-flowchart@^1.4.2:
1199011995
dependencies:
1199111996
flowchart.js "^1.11.3"
1199211997

11998+
vuepress-plugin-smooth-scroll@^0.0.3:
11999+
version "0.0.3"
12000+
resolved "https://registry.yarnpkg.com/vuepress-plugin-smooth-scroll/-/vuepress-plugin-smooth-scroll-0.0.3.tgz#6eff2d4c186cca917cc9f7df2b0af7de7c8c6438"
12001+
integrity sha512-qsQkDftLVFLe8BiviIHaLV0Ea38YLZKKonDGsNQy1IE0wllFpFIEldWD8frWZtDFdx6b/O3KDMgVQ0qp5NjJCg==
12002+
dependencies:
12003+
smoothscroll-polyfill "^0.4.3"
12004+
1199312005
w3c-hr-time@^1.0.1:
1199412006
version "1.0.1"
1199512007
resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045"

0 commit comments

Comments
 (0)