feat(docs): Add copy button for code snippets via plugin (#3118)
Adds copy button for code snippets via plugin
This commit is contained in:
parent
dfb1208787
commit
243dd64836
|
@ -287,6 +287,7 @@ module.exports = {
|
|||
{
|
||||
hostname: "https://starship.rs"
|
||||
}
|
||||
]
|
||||
],
|
||||
['vuepress-plugin-code-copy', true]
|
||||
]
|
||||
};
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"devDependencies": {
|
||||
"@vuepress/plugin-google-analytics": "^1.8.2",
|
||||
"vuepress": "^1.8.2",
|
||||
"vuepress-plugin-code-copy": "^1.0.6",
|
||||
"vuepress-plugin-sitemap": "^2.3.1",
|
||||
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
|
||||
}
|
||||
|
@ -11966,6 +11967,12 @@
|
|||
"object.getownpropertydescriptors": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-code-copy": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.0.6.tgz",
|
||||
"integrity": "sha512-FiqwMtlb4rEsOI56O6sSkekcd3SlESxbkR2IaTIQxsMOMoalKfW5R9WlR1Pjm10v6jmU661Ex8MR11k9IzrNUg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vuepress-plugin-container": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-container/-/vuepress-plugin-container-2.1.5.tgz",
|
||||
|
@ -23120,6 +23127,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"vuepress-plugin-code-copy": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.0.6.tgz",
|
||||
"integrity": "sha512-FiqwMtlb4rEsOI56O6sSkekcd3SlESxbkR2IaTIQxsMOMoalKfW5R9WlR1Pjm10v6jmU661Ex8MR11k9IzrNUg==",
|
||||
"dev": true
|
||||
},
|
||||
"vuepress-plugin-container": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-container/-/vuepress-plugin-container-2.1.5.tgz",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"devDependencies": {
|
||||
"@vuepress/plugin-google-analytics": "^1.8.2",
|
||||
"vuepress": "^1.8.2",
|
||||
"vuepress-plugin-code-copy": "^1.0.6",
|
||||
"vuepress-plugin-sitemap": "^2.3.1",
|
||||
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue