From 4c64db3c58ff1492882e5c8edd6c67b9c28ccdfa Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Tue, 31 Mar 2026 19:28:24 +0800 Subject: [PATCH] =?UTF-8?q?docs(vitepress):=20=E6=B7=BB=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=AB=99=E7=82=B9=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 实现 safeGenericEscapePlugin 插件解决 Markdown 中泛型符号转义问题 - 配置 VitePress 文档站点基本信息包括标题、描述和基础路径 - 设置多语言支持和本地搜索功能的中文翻译 - 定义导航菜单结构包含入门指南、核心框架、ECS系统等模块 - 配置侧边栏按模块分组显示详细文档页面链接 - 添加社交媒体链接、页脚信息和主题切换等 UI 元素 - 设置代码块大小警告阈值以适应大量代码示例 --- docs/.vitepress/config.mts | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 66288ae..5de6e15 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -109,7 +109,8 @@ export default defineConfig({ { text: 'API 参考', link: '/zh-CN/api-reference' }, { text: '常见问题', link: '/zh-CN/faq' }, { text: '故障排查', link: '/zh-CN/troubleshooting' }, - { text: '贡献指南', link: '/zh-CN/contributing' } + { text: '贡献指南', link: '/zh-CN/contributing' }, + { text: '开发环境', link: '/zh-CN/contributor/development-environment' } ] } ], @@ -140,6 +141,7 @@ export default defineConfig({ { text: 'CQRS 模式', link: '/zh-CN/core/cqrs' }, { text: '事件系统', link: '/zh-CN/core/events' }, { text: '属性系统', link: '/zh-CN/core/property' }, + { text: '状态管理', link: '/zh-CN/core/state-management' }, { text: 'IoC容器', link: '/zh-CN/core/ioc' }, { text: '协程系统', link: '/zh-CN/core/coroutine' }, { text: '状态机', link: '/zh-CN/core/state-machine' }, @@ -154,7 +156,28 @@ export default defineConfig({ { text: '模型层', link: '/zh-CN/core/model' }, { text: '系统层', link: '/zh-CN/core/system' }, { text: '规则系统', link: '/zh-CN/core/rule' }, - { text: '环境接口', link: '/zh-CN/core/environment' } + { text: '环境接口', link: '/zh-CN/core/environment' }, + { text: '本地化', link: '/zh-CN/core/localization' } + ] + } + ], + + '/zh-CN/contributing': [ + { + text: '贡献', + items: [ + { text: '贡献指南', link: '/zh-CN/contributing' }, + { text: '开发环境', link: '/zh-CN/contributor/development-environment' } + ] + } + ], + + '/zh-CN/contributor/': [ + { + text: '贡献', + items: [ + { text: '贡献指南', link: '/zh-CN/contributing' }, + { text: '开发环境', link: '/zh-CN/contributor/development-environment' } ] } ],