Skip to content

Commit 5d438d0

Browse files
committed
ci
1 parent 15b51dc commit 5d438d0

File tree

3 files changed

+1311
-1689
lines changed

3 files changed

+1311
-1689
lines changed

.vuepress/config.js

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import path from 'node:path';
22
import { defineUserConfig } from '@vuepress/cli';
3-
import { gitPlugin } from '@vuepress/plugin-git';
43
import { feedPlugin } from '@vuepress/plugin-feed';
54
import { viteBundler } from '@vuepress/bundler-vite';
65
import { shikiPlugin } from '@vuepress/plugin-shiki';
76
import { defaultTheme } from '@vuepress/theme-default';
87
import { sitemapPlugin } from '@vuepress/plugin-sitemap';
9-
import { copyCodePlugin } from '@vuepress/plugin-copy-code';
108
import { docsearchPlugin } from '@vuepress/plugin-docsearch';
11-
import { backToTopPlugin } from '@vuepress/plugin-back-to-top';
12-
import { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom';
139

1410
import {
1511
navbarDe,
@@ -202,24 +198,19 @@ export default defineUserConfig({
202198
},
203199
themePlugins: {
204200
prismjs: false,
205-
// Explicitly disable these plugins from the theme to use our custom configurations below
206-
git: false,
207-
backToTop: false,
208-
mediumZoom: false,
209-
copyCode: false,
201+
// copyCode plugin configuration (already included in defaultTheme)
202+
copyCode: {
203+
locales: {
204+
'/': {
205+
copy: 'Copy Codes from code block',
206+
},
207+
},
208+
},
210209
},
211210
}),
212211
plugins: [
213-
gitPlugin(),
214-
backToTopPlugin(),
215-
mediumZoomPlugin(),
216-
copyCodePlugin({
217-
locales: {
218-
'/': {
219-
copy: 'Copy Codes from code block',
220-
},
221-
},
222-
}),
212+
// Note: gitPlugin, backToTopPlugin, mediumZoomPlugin, and copyCodePlugin
213+
// are already included in defaultTheme, so we don't need to add them here
223214
shikiPlugin({
224215
themes: {
225216
light: 'dark-plus',

0 commit comments

Comments
 (0)