From 1673d5c501b49906b6f2c75d50d4fa6c951dc2d2 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Tue, 25 Apr 2023 14:57:27 +0000 Subject: [PATCH] Add back code copy plugin --- docs/.vuepress/config.ts | 2 ++ docs/package-lock.json | 13 +++++++++++++ docs/package.json | 1 + 3 files changed, 16 insertions(+) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 7befd0433..3b5b75fbb 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -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", diff --git a/docs/package-lock.json b/docs/package-lock.json index f74293d3d..afa6d2618 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -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", diff --git a/docs/package.json b/docs/package.json index 9e40ea078..ebb7c9e5d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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",