Skip to content

Commit 8480d0c

Browse files
author
nebulaliu
committed
feat: pages-config
1 parent 38da029 commit 8480d0c

File tree

3 files changed

+156
-23
lines changed

3 files changed

+156
-23
lines changed

.config/.vitepress/config.mts

+152-22
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,174 @@
1-
import { defineConfig } from 'vitepress'
1+
import { defineConfig } from "vitepress";
22

33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
5-
title: "微信小游戏团结/Unity快适配方案",
5+
title: "微信小游戏团结/Unity快适配",
66
description: "Wechat Mini Game Unity engine adapter documents.",
77
themeConfig: {
88
nav: [
9-
{ text: '主页', link: '/' },
10-
{ text: '微信小游戏官方文档', link: 'https://developers.weixin.qq.com/minigame/dev/guide/' },
9+
{ text: "主页", link: "/" },
1110
{
12-
text: '帮助',
11+
text: "微信小游戏官方文档",
12+
link: "https://developers.weixin.qq.com/minigame/dev/guide/",
13+
},
14+
{
15+
text: "帮助",
1316
items: [
14-
{ text: '微信开发者社区', link: 'https://developers.weixin.qq.com/community/develop/question' },
15-
{ text: '客服助手', link: 'https://work.weixin.qq.com/kfid/kfcca4feec277f91616' },
17+
{
18+
text: "微信开发者社区",
19+
link: "https://developers.weixin.qq.com/community/develop/question",
20+
},
21+
{
22+
text: "客服助手",
23+
link: "https://work.weixin.qq.com/kfid/kfcca4feec277f91616",
24+
},
1625
],
1726
},
18-
{ text: '团结引擎', link: 'https://unity.cn/tuanjie/tuanjieyinqing' },
27+
{ text: "团结引擎", link: "https://unity.cn/tuanjie/tuanjieyinqing" },
1928
],
2029

2130
sidebar: [
2231
{
23-
text: 'Examples',
32+
text: "基本信息",
33+
items: [
34+
{ text: "简介", link: "/markdown-examples" },
35+
{ text: "安装与使用", link: "/api-examples" },
36+
{ text: "入门指南", link: "/api-examples" },
37+
{ text: "优秀案例", link: "/api-examples" },
38+
],
39+
},
40+
{
41+
text: "方案概述与兼容性",
42+
items: [
43+
{ text: "技术原理", link: "/markdown-examples" },
44+
{ text: "兼容性评估", link: "/api-examples" },
45+
{ text: "推荐引擎版本", link: "/api-examples" },
46+
],
47+
},
48+
{
49+
text: "性能优化",
50+
items: [
51+
{
52+
text: "性能优化总览",
53+
link: "",
54+
},
55+
{
56+
text: "性能优化评估标准",
57+
link: "",
58+
},
59+
{
60+
text: "启动性能",
61+
items: [
62+
{
63+
text: "提升 Unity WebGL 游戏启动速度",
64+
link: "/markdown-examples",
65+
},
66+
{ text: "启动流程与时序", link: "/api-examples" },
67+
{
68+
text: "使用 Loader 进行游游戏加载",
69+
link: "/markdown-examples",
70+
},
71+
{ text: "资源按需加载概述", link: "/api-examples" },
72+
{
73+
text: "使用 AssetBundle 进行资源按需加载",
74+
link: "/markdown-examples",
75+
},
76+
{
77+
text: "使用 Addressable 进行资源按需加载",
78+
link: "/api-examples",
79+
},
80+
{
81+
text: "使用 AutoStreaming 进行资源按需加载",
82+
link: "/markdown-examples",
83+
},
84+
{ text: "定制启动封面", link: "/api-examples" },
85+
{ text: "设计启动剧情", link: "/markdown-examples" },
86+
{ text: "使用预下载功能", link: "/api-examples" },
87+
{ text: "首场景启动优化", link: "/api-examples" },
88+
{ text: "使用代码分包工具", link: "/api-examples" },
89+
{ text: "启动留存数据上报统计", link: "/api-examples" },
90+
{ text: "最佳实践检测工具", link: "/api-examples" },
91+
{ text: "微信系统字体", link: "/api-examples" },
92+
],
93+
},
94+
{
95+
text: "运行性能",
96+
items: [
97+
{ text: "优化Unity WebGL的运行性能", link: "/markdown-examples" },
98+
{
99+
text: "使用 Android CPU Profiler 性能调优",
100+
link: "/api-examples",
101+
},
102+
{
103+
text: "使用 Unity Profiler 性能调优",
104+
link: "/markdown-examples",
105+
},
106+
{ text: "优化Unity WebGL的内存", link: "/api-examples" },
107+
{
108+
text: "使用ProfilingMemory分析内存",
109+
link: "/markdown-examples",
110+
},
111+
{ text: "压缩纹理优化", link: "/api-examples" },
112+
{ text: "资源优化工具与建议", link: "/markdown-examples" },
113+
{ text: "iOS高性能 与 高性能+ 模式", link: "/api-examples" },
114+
{ text: "优化Unity WebGL的渲染性能", link: "/markdown-examples" },
115+
{ text: "定制微信小游戏的 URP 管线", link: "/markdown-examples" },
116+
{ text: "WebGL2.0渲染支持说明", link: "/markdown-examples" },
117+
],
118+
},
119+
],
120+
},
121+
{
122+
text: "版本更新与资源部署",
123+
items: [
124+
{ text: "小游戏资源部署", link: "/markdown-examples" },
125+
{ text: "小游戏资源缓存", link: "/api-examples" },
126+
{ text: "小游戏版本更新", link: "/api-examples" },
127+
],
128+
},
129+
{
130+
text: "能力适配",
131+
items: [
132+
{ text: "WX SDK 平台能力适配", link: "/markdown-examples" },
133+
{ text: "屏幕适配", link: "/markdown-examples" },
134+
{ text: "输入法适配", link: "/markdown-examples" },
135+
{ text: "排行榜与微信关系数据", link: "/markdown-examples" },
136+
{ text: "后端服务指引", link: "/markdown-examples" },
137+
{ text: "网络通信适配", link: "/markdown-examples" },
138+
{ text: "使用水印保护代码包安全", link: "/markdown-examples" },
139+
],
140+
},
141+
{
142+
text: "调试与异常处理",
24143
items: [
25-
{ text: 'Markdown Examples', link: '/markdown-examples' },
26-
{ text: 'Runtime API Examples', link: '/api-examples' }
27-
]
28-
}
144+
{ text: "开发错误调试与排查", link: "/markdown-examples" },
145+
{ text: "现网错误日志上报与排查", link: "/api-examples" },
146+
],
147+
},
148+
{
149+
text: "其他",
150+
items: [
151+
{ text: "技术常见问题QA", link: "/api-examples" },
152+
{ text: "问题反馈与联系我们", link: "/markdown-examples" },
153+
{ text: "技术沙龙", link: "/markdown-examples" },
154+
],
155+
},
29156
],
30157

31158
socialLinks: [
32-
{ icon: 'github', link: 'https://github.com/wechat-miniprogram/minigame-unity-webgl-transform' }
159+
{
160+
icon: "github",
161+
link: "https://github.com/wechat-miniprogram/minigame-unity-webgl-transform",
162+
},
33163
],
34164

35165
search: {
36-
provider: 'local',
37-
}
166+
provider: "local",
167+
},
38168
},
39-
srcDir: '../',
40-
base: '/minigame-unity-webgl-transform/',
41-
outDir: '../docs',
42-
// ignoreDeadLinks: true,
43-
lang: 'zh-cn'
44-
})
169+
srcDir: "../",
170+
base: "/minigame-unity-webgl-transform/",
171+
outDir: "../docs",
172+
ignoreDeadLinks: true,
173+
lang: "zh-cn",
174+
});

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
## 转换案例
1515
| 我叫MT2(回合战斗) | 旅行串串(休闲) | 谜题大陆(SLG) | 热血神剑(MMO) |
1616
| --- | --- | --- | --- |
17-
| <img src='image/showcase34.png' width="240"/> | <img src='image/showcase32.png' width="220"/> | <img src='image/showcase25.png' width="230"/>| <img src='image/showcase33.png' width="230"/> |
17+
| <img src='./image/showcase34.png' width="240"/> | <img src='./image/showcase32.png' width="220"/> | <img src='./image/showcase25.png' width="230"/>| <img src='./image/showcase33.png' width="230"/> |
1818

1919
- [更多转换案例](Design/ShowCase.md)
2020

index.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ hero:
88
actions:
99
- theme: brand
1010
text: 现在开始
11+
link: /Design/Guide
12+
- theme: alt
13+
text: 优秀案例
1114
link: /markdown-examples
1215
- theme: alt
1316
text: 在 GitHub 上查看

0 commit comments

Comments
 (0)