Add back code copy plugin

This commit is contained in:
Kid 2023-04-25 14:57:27 +00:00
parent 5934ad85b9
commit 1673d5c501
3 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import { defineUserConfig, SidebarConfigArray } from "vuepress";
import { defaultTheme } from "@vuepress/theme-default";
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
import codeCopyPlugin from "@snippetors/vuepress-plugin-code-copy";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
const sidebar = (lang, override = {}): SidebarConfigArray =>
@ -319,6 +320,7 @@ export default defineUserConfig({
googleAnalyticsPlugin({
id: "UA-71160903-4",
}),
codeCopyPlugin(),
docsearchPlugin({
apiKey: "44118471f56286dcda7db941a043370d",
indexName: "starship",

13
docs/package-lock.json generated
View File

@ -5,6 +5,7 @@
"packages": {
"": {
"devDependencies": {
"@snippetors/vuepress-plugin-code-copy": "^1.2.3",
"@vuepress/plugin-docsearch": "^2.0.0-beta.61",
"@vuepress/plugin-google-analytics": "^2.0.0-beta.61",
"vuepress": "^2.0.0-beta.61",
@ -767,6 +768,12 @@
"node": ">= 8"
}
},
"node_modules/@snippetors/vuepress-plugin-code-copy": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@snippetors/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.2.3.tgz",
"integrity": "sha512-PiUbhlYseY4UqsE/ike/Up27GkrbHvR7OJqV5nlmHEW141uWcrVaBZsBS870ckqNF+vd2fk8g4TyoiHvxaUzSg==",
"dev": true
},
"node_modules/@types/debug": {
"version": "4.1.7",
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz",
@ -3755,6 +3762,12 @@
"fastq": "^1.6.0"
}
},
"@snippetors/vuepress-plugin-code-copy": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@snippetors/vuepress-plugin-code-copy/-/vuepress-plugin-code-copy-1.2.3.tgz",
"integrity": "sha512-PiUbhlYseY4UqsE/ike/Up27GkrbHvR7OJqV5nlmHEW141uWcrVaBZsBS870ckqNF+vd2fk8g4TyoiHvxaUzSg==",
"dev": true
},
"@types/debug": {
"version": "4.1.7",
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz",

View File

@ -4,6 +4,7 @@
"build": "vuepress build"
},
"devDependencies": {
"@snippetors/vuepress-plugin-code-copy": "^1.2.3",
"@vuepress/plugin-docsearch": "^2.0.0-beta.61",
"@vuepress/plugin-google-analytics": "^2.0.0-beta.61",
"vuepress": "^2.0.0-beta.61",