Skip to content

Commit 1bfeb75

Browse files
committed
调整主页样式,调整链接跳转,修改一些排版错误与标题名称
1 parent 034a65c commit 1bfeb75

File tree

6 files changed

+18
-15
lines changed

6 files changed

+18
-15
lines changed

docs/.vitepress/config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineConfig({
2222
{ text: "API", link: Chapters.xrobot_api },
2323
{ text: "MCP接入", link: Chapters.xrobot_mcp },
2424
{ text: "最佳实践", link: Chapters.xrobot_guide },
25-
{ text: "FAQ", link: Chapters.xrobot_faq },
25+
{ text: "FAQ", link: Chapters.xrobot_faq + "faq/" },
2626
],
2727
sidebar: sidebarItems,
2828
socialLinks: [
@@ -32,8 +32,8 @@ export default defineConfig({
3232
},
3333
],
3434
search: {
35-
provider: 'local',
36-
}
35+
provider: "local",
36+
},
3737
},
3838
markdown: {
3939
toc: {

docs/.vitepress/theme/constrants/route.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ const items_xrobot_platform = [
7676
link: Chapters.xrobot_platform,
7777
collapsed: true,
7878
items: [
79-
{ text: "OTA", link: "OTA" },
80-
{ text: "websocket", link: "websocket" },
79+
{ text: "OTA 网关", link: "OTA" },
80+
{ text: "WebSocket", link: "websocket" },
8181
{ text: "MQTT", link: "MQTT" },
8282
].map((item) => apply_prefix(item, Chapters.xrobot_platform)),
8383
},
@@ -105,9 +105,7 @@ const items_xrobot_mcp = [
105105
items: [
106106
// { text: "硬件MCP", link: "hardware-mcp" },
107107
// { text: "软件MCP", link: "software-mcp" },
108-
].map((item) =>
109-
apply_prefix(item, Chapters.xrobot_mcp)
110-
),
108+
].map((item) => apply_prefix(item, Chapters.xrobot_mcp)),
111109
},
112110
];
113111

docs/.vitepress/theme/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
margin: auto;
2626
}
2727

28+
/* 主页 */
29+
div.home #local-search button {
30+
display: none;
31+
}
32+
2833
/* todo 移除测试背景-该背景被应用到整个页面 */
2934
/* div[class="VPContent is-home"] {
3035
background: linear-gradient(to bottom right, #dce8ff, #e4eeff, #e6cbfd);

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ features:
4141
dark: /icons/dark/faq.svg
4242
width: 100
4343
height: 100
44-
link: ./xrobot/faq
44+
link: ./xrobot/faq/faq/
4545
- linkText: 去体验
4646
icon:
4747
light: /icons/light/experience.svg

docs/xrobot/platform/OTA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: OTA 协议
2+
title: OTA 协议(网关)
33
---
44

55
## OTA(Over-The-Air)更新介绍

docs/xrobot/platform/websocket.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ WebSocket 协议的主要特点包括:
3737
1. 建立 WebSocket 连接
3838
2. 交换 hello 消息
3939
3. 开始语音交互:
40-
41-
- 发送开始监听
42-
- 发送音频数据
43-
- 接收识别结果
44-
- 接收 TTS 音频 4.结束会话时关闭连接
40+
- 发送开始监听
41+
- 发送音频数据
42+
- 接收识别结果
43+
- 接收 TTS 音频
44+
4. 结束会话时关闭连接
4545

4646
### 连接建立
4747

0 commit comments

Comments
 (0)