diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 6e42db82..20a13535 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -8,14 +8,13 @@ import { theme } from './theme.js' export default defineUserConfig({ base: '/', lang: 'zh-CN', - title: 'Plume Theme', - description: '', source: path.resolve(__dirname, '../'), public: path.resolve(__dirname, 'public'), locales: { '/': { title: 'Plume主题', description: '', lang: 'zh-CN' }, - '/en/': { title: 'Plume Theme', description: '', lang: 'en' }, + '/en/': { title: 'Plume Theme', description: '', lang: 'en-US' }, }, bundler: process.env.DOCS_BUNDLER === 'webpack' ? webpackBundler() : viteBundler(), + theme, }) diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index cd2552ec..2ffb6d21 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -7,9 +7,6 @@ export const theme = themePlume({ hostname: 'https://pengzhanbo.cn', repo: 'https://github.com/pengzhanbo/vuepress-theme-plume', docsDir: 'docs', - editLink: true, - editLinkText: '在 GitHub 编辑此页', - appearance: true, avatar: { url: '/images/blogger.jpg', name: 'Plume Theme', @@ -20,30 +17,19 @@ export const theme = themePlume({ locales: { '/': { - selectLanguageName: '简体中文', - selectLanguageText: '选择语言', notes: zhNotes, navbar: zhNavbar, }, '/en/': { - selectLanguageName: 'English', - selectLanguageText: 'Language', - editLinkText: 'Edit this page on GitHub', notes: enNotes, navbar: enNavbar, }, }, plugins: { - markdownEnhance: { katex: true }, - search: { - locales: { - '/': { - placeholder: '搜索', - }, - '/en/': { - placeholder: 'Search', - }, - }, - }, + // docsearch: { + // apiKey: '111', + // appId: '111', + // indexName: '1234', + // }, }, })