diff options
author | Pratham Sharma <prathamsharma173@gmail.com> | 2021-10-06 23:51:48 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 13:21:48 -0500 |
commit | 243dd64836ea31d2c6adb0e7cbae7553b0708bee (patch) | |
tree | ef9c3fa18ed07ed4f130e6fffb774dabad9bb36a /docs | |
parent | dfb1208787dc5e026b7715d5253b0294078ca82a (diff) |
feat(docs): Add copy button for code snippets via plugin (#3118)
Adds copy button for code snippets via plugin
Diffstat (limited to 'docs')
-rw-r--r-- | docs/.vuepress/config.js | 3 | ||||
-rw-r--r-- | docs/package-lock.json | 13 | ||||
-rw-r--r-- | docs/package.json | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index a86134d04..d2ee82f9f 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -287,6 +287,7 @@ module.exports = { { hostname: "https://starship.rs" } - ] + ], + ['vuepress-plugin-code-copy', true] ] }; diff --git a/docs/package-lock.json b/docs/package-lock.json index b328f5316..f7b9ba6b1 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -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", diff --git a/docs/package.json b/docs/package.json index 2c58adeca..11bd083cd 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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" } |