Skip to content

Commit 109d97c

Browse files
authored
Merge pull request #6 from hyt1004/main
修改导航栏折叠
2 parents 1ca9934 + 475e31d commit 109d97c

File tree

1 file changed

+6
-6
lines changed
  • docs/.vitepress/theme/constrants

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const items_xrobot_platform = [
8181
{
8282
text: "设备接入协议",
8383
link: Chapters.xrobot_platform,
84-
collapsed: false,
84+
collapsed: true,
8585
items: [
8686
{ text: "OTA", link: "OTA" },
8787
{ text: "websocket", link: "websocket" },
@@ -116,7 +116,7 @@ const items_xrobot_api_server = [
116116
const items_xrobot_api = [
117117
{
118118
text: "平台API",
119-
collapsed: false,
119+
collapsed: true,
120120
link: Chapters.xrobot_api,
121121
items: [
122122
...items_xrobot_api_server,
@@ -128,7 +128,7 @@ const items_xrobot_api = [
128128
const items_xrobot_mcp = [
129129
{
130130
text: "MCP接入",
131-
collapsed: false,
131+
collapsed: true,
132132
link: Chapters.xrobot_mcp,
133133
items: [
134134
// { text: "硬件MCP", link: "hardware-mcp" },
@@ -158,7 +158,7 @@ const items_xrobot_guide_quick_start = [
158158
{
159159
text: "快速入门",
160160
link: Chapters.xrobot_guide_quick_start,
161-
collapsed: false,
161+
collapsed: true,
162162
items: [
163163
...items_xrobot_platform_net_config,
164164
...[
@@ -222,7 +222,7 @@ const items_xrobot_guide = [
222222
{
223223
text: "最佳实践",
224224
link: Chapters.xrobot_guide,
225-
collapsed: false,
225+
collapsed: true,
226226
items: [
227227
...items_xrobot_guide_quick_start,
228228
...items_xrobot_guide_xiaozhi_firmware,
@@ -237,7 +237,7 @@ const items_xrobot_faq = [
237237
{
238238
text: "常见问题",
239239
link: Chapters.xrobot_faq,
240-
collapsed: false,
240+
collapsed: true,
241241
items: [{ text: "FAQ", link: "faq" }].map((item) =>
242242
apply_prefix(item, Chapters.xrobot_faq)
243243
),

0 commit comments

Comments
 (0)