From d2513b21589cddca151e7a6ce159a495b45a8dc4 Mon Sep 17 00:00:00 2001 From: simeng Date: Mon, 22 Sep 2025 07:25:37 -0400 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=98=BE=E7=A4=BA=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 2c9f374..12af09e 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,6 +1,6 @@ -import { viteBundler } from '@vuepress/bundler-vite' import { defineUserConfig } from 'vuepress' import { plumeTheme } from 'vuepress-theme-plume' +import { viteBundler } from '@vuepress/bundler-vite' export default defineUserConfig({ base: '/', @@ -27,5 +27,27 @@ export default defineUserConfig({ /* 本地搜索, 默认启用 */ search: { provider: 'local' }, + + /** + * 文章贡献者配置 + */ + contributors: { + mode: 'inline', // 设置为inline模式,在文章页底部与最后更新时间并列显示 + info: [ + { + username: 'si-meng', // 您的GitHub用户名 + name: '祀梦', // 显示名称 + alias: ['祀梦', 'simeng'], // 别名,本地git配置中的用户名 + } + ] + }, + + /** + * Git插件配置 + * 设置为true以在开发环境也启用 + */ + plugins: { + git: true + } }), })