mirror of
https://github.com/starship/starship.git
synced 2024-12-03 13:46:40 +01:00
Add back code copy plugin
This commit is contained in:
parent
5934ad85b9
commit
1673d5c501
@ -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
13
docs/package-lock.json
generated
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user