Skip to content

Commit 2062a9b

Browse files
elevatebartBart Ledoux
authored andcommitted
docs: show how to use the copy plugin when wanted
1 parent 84af7fa commit 2062a9b

File tree

3 files changed

+63
-61
lines changed

3 files changed

+63
-61
lines changed

docs/.vuepress/config.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,28 @@ module.exports = {
88
editLinks: true,
99
docsDir: "docs",
1010
search: false,
11-
sidebar: ["/", "/Install.md"]
11+
sidebar: ["/", "/Install.md"],
1212
},
1313
plugins: [
14+
["code-copy", { selector: `div:not(.editor)[class*="language-"] pre` }],
1415
[
1516
require("../../index"),
1617
{
1718
// uncomment next line to use a custom layout
1819
// layout: path.resolve(__dirname, "./components/custom-layout.vue"),
19-
noSsr: true
20-
}
20+
noSsr: true,
21+
},
2122
],
2223
[
2324
"@vuepress/register-components",
2425
{
2526
components: [
2627
{
2728
name: "vue-slider",
28-
path: path.resolve(__dirname, "../vue-slider")
29-
}
30-
]
31-
}
32-
]
33-
]
29+
path: path.resolve(__dirname, "../vue-slider"),
30+
},
31+
],
32+
},
33+
],
34+
],
3435
};

package-lock.json

Lines changed: 52 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"devDependencies": {
2929
"@vuepress/plugin-register-components": "^1.0.3",
3030
"lodash": "^4.17.11",
31+
"lodash.throttle": "^4.1.1",
3132
"remark": "^10.0.1",
3233
"unist-util-visit": "^1.4.0",
3334
"validate-commit-msg": "^2.14.0",

0 commit comments

Comments
 (0)