From 618d72890ab208910f3c7cc3df3141e17c67e09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= Date: Thu, 13 Mar 2025 23:10:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=A1=B5=E9=9D=A2=E6=96=87=E5=AD=97?= =?UTF-8?q?=E6=B1=89=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 377ba52..7932381 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -62,7 +62,8 @@ export default defineConfig({ sidebar: sidebar, editLink: { - pattern: 'https://github.com/coder-xiaomo/tutorials/edit/main/docs/:path' + text: '在 GitHub 上编辑此页面', + pattern: 'https://github.com/coder-xiaomo/tutorials/edit/main/docs/:path', }, socialLinks: [ @@ -95,8 +96,28 @@ export default defineConfig({ provider: 'local' }, + docFooter: { + prev: '上一页', + next: '下一页' + }, + + outline: { + label: '页面导航' + }, + lastUpdated: { text: '最近更新', + formatOptions: { + dateStyle: 'medium', + timeStyle: 'short', + } }, + + langMenuLabel: '多语言', + returnToTopLabel: '回到顶部', + sidebarMenuLabel: '菜单', + darkModeSwitchLabel: '主题', + lightModeSwitchTitle: '切换到浅色模式', + darkModeSwitchTitle: '切换到深色模式' }, })