Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import path from 'node:path';
import { defineUserConfig } from '@vuepress/cli';
import { gitPlugin } from '@vuepress/plugin-git';
import { feedPlugin } from '@vuepress/plugin-feed';
import { viteBundler } from '@vuepress/bundler-vite';
import { shikiPlugin } from '@vuepress/plugin-shiki';
import { defaultTheme } from '@vuepress/theme-default';
import { sitemapPlugin } from '@vuepress/plugin-sitemap';
import { copyCodePlugin } from '@vuepress/plugin-copy-code';
import { docsearchPlugin } from '@vuepress/plugin-docsearch';
import { backToTopPlugin } from '@vuepress/plugin-back-to-top';
import { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom';

import {
navbarDe,
Expand Down Expand Up @@ -202,19 +198,19 @@ export default defineUserConfig({
},
themePlugins: {
prismjs: false,
// copyCode plugin configuration (already included in defaultTheme)
copyCode: {
locales: {
'/': {
copy: 'Copy Codes from code block',
},
},
},
},
}),
plugins: [
gitPlugin(),
backToTopPlugin(),
mediumZoomPlugin(),
copyCodePlugin({
locales: {
'/': {
copy: 'Copy Codes from code block',
},
},
}),
// Note: gitPlugin, backToTopPlugin, mediumZoomPlugin, and copyCodePlugin
// are already included in defaultTheme, so we don't need to add them here
shikiPlugin({
themes: {
light: 'dark-plus',
Expand Down
Loading