Skip to content

Commit 12e6fab

Browse files
committed
docs: show how to use the copy plugin when wanted
1 parent 8ee7ae4 commit 12e6fab

File tree

3 files changed

+143
-114
lines changed

3 files changed

+143
-114
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
};

0 commit comments

Comments
 (0)