From 2f8607fc96977ed64923c2c08f1f5e7ea63aaa43 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 6 Jan 2024 00:17:06 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=B0=83=E6=95=B4=E7=AE=80=E5=8C=96=20?= =?UTF-8?q?docs=20=E4=B8=BB=E9=A2=98=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 5 ++--- docs/.vuepress/theme.ts | 24 +++++------------------- 2 files changed, 7 insertions(+), 22 deletions(-) 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', + // }, }, })