mirror of
https://github.com/starship/starship.git
synced 2024-12-04 14:23:22 +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 { defineUserConfig, SidebarConfigArray } from "vuepress";
|
||||||
import { defaultTheme } from "@vuepress/theme-default";
|
import { defaultTheme } from "@vuepress/theme-default";
|
||||||
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
|
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
|
||||||
|
import codeCopyPlugin from "@snippetors/vuepress-plugin-code-copy";
|
||||||
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
|
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
|
||||||
|
|
||||||
const sidebar = (lang, override = {}): SidebarConfigArray =>
|
const sidebar = (lang, override = {}): SidebarConfigArray =>
|
||||||
@ -319,6 +320,7 @@ export default defineUserConfig({
|
|||||||
googleAnalyticsPlugin({
|
googleAnalyticsPlugin({
|
||||||
id: "UA-71160903-4",
|
id: "UA-71160903-4",
|
||||||
}),
|
}),
|
||||||
|
codeCopyPlugin(),
|
||||||
docsearchPlugin({
|
docsearchPlugin({
|
||||||
apiKey: "44118471f56286dcda7db941a043370d",
|
apiKey: "44118471f56286dcda7db941a043370d",
|
||||||
indexName: "starship",
|
indexName: "starship",
|
||||||
|
13
docs/package-lock.json
generated
13
docs/package-lock.json
generated
@ -5,6 +5,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@snippetors/vuepress-plugin-code-copy": "^1.2.3",
|
||||||
"@vuepress/plugin-docsearch": "^2.0.0-beta.61",
|
"@vuepress/plugin-docsearch": "^2.0.0-beta.61",
|
||||||
"@vuepress/plugin-google-analytics": "^2.0.0-beta.61",
|
"@vuepress/plugin-google-analytics": "^2.0.0-beta.61",
|
||||||
"vuepress": "^2.0.0-beta.61",
|
"vuepress": "^2.0.0-beta.61",
|
||||||
@ -767,6 +768,12 @@
|
|||||||
"node": ">= 8"
|
"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": {
|
"node_modules/@types/debug": {
|
||||||
"version": "4.1.7",
|
"version": "4.1.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz",
|
||||||
@ -3755,6 +3762,12 @@
|
|||||||
"fastq": "^1.6.0"
|
"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": {
|
"@types/debug": {
|
||||||
"version": "4.1.7",
|
"version": "4.1.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz",
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"build": "vuepress build"
|
"build": "vuepress build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@snippetors/vuepress-plugin-code-copy": "^1.2.3",
|
||||||
"@vuepress/plugin-docsearch": "^2.0.0-beta.61",
|
"@vuepress/plugin-docsearch": "^2.0.0-beta.61",
|
||||||
"@vuepress/plugin-google-analytics": "^2.0.0-beta.61",
|
"@vuepress/plugin-google-analytics": "^2.0.0-beta.61",
|
||||||
"vuepress": "^2.0.0-beta.61",
|
"vuepress": "^2.0.0-beta.61",
|
||||||
|
Loading…
Reference in New Issue
Block a user