更新配置,添加主题配置和编辑链接功能,支持多语言文档编辑

This commit is contained in:
2024-12-17 01:36:31 +08:00
parent 721904d4c3
commit 575993ebc4
6 changed files with 44 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import {defineConfig} from 'vitepress'
import { ThemeConfig } from './common'
export const zh = defineConfig({
lang: "zh-Hans",
@ -14,6 +15,7 @@ export const zh = defineConfig({
{text: '使用', link: '/start/install'},
{text: '开发', link: '/dev/extension'},
],
editLink: ThemeConfig.getEditLink('编辑此页面'),
langMenuLabel: '语言',
returnToTopLabel: '返回顶部',
sidebarMenuLabel: '菜单',