Skip to content

Commit 9cf2081

Browse files
committed
调整路由
1 parent f182077 commit 9cf2081

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type ChapterItem = {
55
link: string;
66
// 初始时是否折叠, 如果未指定,侧边栏组不可折叠
77
collapsed?: boolean;
8-
// 子项
8+
// 子项,元素顺序影响页面、章节顺序
99
items?: ChapterItem[];
1010
// 返回上级章节
1111
goback?: boolean;
@@ -56,15 +56,15 @@ const items_xrobot_api = [
5656

5757
const items_xrobot_device = [
5858
{
59-
text: "设备指南",
59+
text: "设备使用",
6060
items: [
6161
{ text: "设备使用指南", link: "device-intro" },
6262
{ text: "设备绑定", link: "device-bind" },
6363
{ text: "设备服务通信协议", link: "device-protocol" },
6464
{ text: "智能体连接指南", link: "device-connection" },
6565
].map((item) => apply_prefix(item, Chapters.xrobot_device)),
6666
link: Chapters.xrobot_device,
67-
collapsed: false,
67+
collapsed: true,
6868
},
6969
// 子章节
7070
];
@@ -76,7 +76,7 @@ const items_xrobot_faq = [
7676
apply_prefix(item, Chapters.xrobot_faq)
7777
),
7878
link: Chapters.xrobot_faq,
79-
collapsed: false,
79+
// collapsed: false,
8080
},
8181
// 子章节
8282
];
@@ -100,22 +100,22 @@ const items_xrobot_guide = [
100100
text: "操作指南",
101101
link: Chapters.xrobot_guide,
102102
collapsed: false,
103-
items: [...items_xrobot_guide_mp],
103+
items: [...items_xrobot_guide_mp, ...items_xrobot_device],
104104
},
105105
];
106106

107107
// xrobot章节整体
108108
const items_xrobot = [
109109
{
110-
text: "Xrobot",
110+
text: "",
111111
items: [
112+
...items_xrobot_guide,
112113
...items_xrobot_api,
113-
...items_xrobot_device,
114+
// ...items_xrobot_device,
114115
...items_xrobot_faq,
115-
...items_xrobot_guide,
116116
],
117117
link: Chapters.xrobot,
118-
collapsed: false,
118+
// collapsed: false,
119119
},
120120
];
121121

docs/xrobot/guide/mini-program/role-config.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,25 @@ title: 角色配置
44

55
> [!IMPORTANT]
66
>
7-
> 注意,角色配置更新后,需要重启设备才能生效
7+
> 注意,角色配置更新后,需要**重启设备**才能生效
88
99
## 1. 选择智能体与配置
1010

1111
选择想要配置的智能体,点击配置角色按钮,进入角色配置页面。可以在角色模版处,点击想要的模版进行配置,也可以根据自身需求,个性化定制角色介绍、大语言模型、角色音色等配置。
1212

1313
| ![image-20250804164004202](./imgs/role-config/image-20250804164004202.png) | ![image-20250804164011708](./imgs/role-config/image-20250804164011708.png) | ![image-20250804164019357](./imgs/role-config/image-20250804164019357.png) |
14-
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
15-
16-
14+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
1715

1816
## 2. 保存
1917

2018
配置好角色后,点击左下角的保存配置按钮,然后点击确定。
2119

2220
| ![image-20250804164102596](./imgs/role-config/image-20250804164102596.png) | ![image-20250804164109831](./imgs/role-config/image-20250804164109831.png) |
23-
| ------------------------------------------------------------ | ------------------------------------------------------------ |
24-
25-
21+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
2622

2723
## 3. 重置配置
2824

2925
如果需要重置当前角色配置,则点击右下角重置按钮后点击确定,则会清空所有配置内容。
3026

3127
| ![image-20250804164132220](./imgs/role-config/image-20250804164132220.png) | ![image-20250804164140446](./imgs/role-config/image-20250804164140446.png) |
32-
| ------------------------------------------------------------ | ------------------------------------------------------------ |
33-
28+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)