Skip to content

Commit

Permalink
docs: add copy to clip for code snippets (backport #1981) (#1986)
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Lawlor-Bagcal <wgwz@users.noreply.github.com>
Co-authored-by: ryanchristo <12519942+ryanchristo@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 6, 2023
1 parent 1b5f5d6 commit ade01bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { description } = require('../package')
import { backToTopPlugin } from '@vuepress/plugin-back-to-top'
import { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import codeCopyPlugin from '@snippetors/vuepress-plugin-code-copy';

/**
* Ref:https://v2.vuepress.vuejs.org/guide/configuration.html#config-file
Expand Down Expand Up @@ -275,5 +276,6 @@ export default defineUserConfig({
googleAnalyticsPlugin({
id: process.env.GOOGLE_ANALYTICS_ID
}),
codeCopyPlugin(),
]
})
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"license": "MIT",
"devDependencies": {
"@snippetors/vuepress-plugin-code-copy": "^1.2.3",
"@vuepress/plugin-google-analytics": "^2.0.0-beta.63",
"dotenv": "^16.3.1",
"vuepress-vite": "^2.0.0-beta.63"
Expand Down
5 changes: 5 additions & 0 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@snippetors/vuepress-plugin-code-copy@^1.2.3":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@snippetors/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.2.3.tgz#4cc5f7ef7530ff6654786f6baa2e15ca4ffb8b14"
integrity sha512-PiUbhlYseY4UqsE/ike/Up27GkrbHvR7OJqV5nlmHEW141uWcrVaBZsBS870ckqNF+vd2fk8g4TyoiHvxaUzSg==

"@types/debug@^4.1.8":
version "4.1.8"
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.8.tgz#cef723a5d0a90990313faec2d1e22aee5eecb317"
Expand Down

0 comments on commit ade01bb

Please sign in to comment.