From 3b8ebb7b0ad1e82095b233f950efc19ba4f9b69c Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Thu, 30 Nov 2023 17:13:29 +0800 Subject: [PATCH] feat: set themeConfig of the article page --- docs/.vitepress/config.mts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index e40c9be..53cf297 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -21,6 +21,22 @@ export default defineConfig({ socialLinks: [ { icon: 'github', link: 'https://github.com/project-trans/RLE-wiki' } - ] + ], + + editLink: { + pattern: 'https://github.com/project-trans/RLE-wiki/edit/main/docs/:path', + text: '在 GitHub 上编辑此页面', // label localization + }, + + // label localization + outline: { label: '本页大纲' }, + lastUpdated: { text: '最后更新' }, + darkModeSwitchLabel: '深色模式', + sidebarMenuLabel: '目录', + returnToTopLabel: '返回顶部', + docFooter: { + prev: '上一页', + next: '下一页', + }, } })