Skip to content

修改导航栏折叠 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/.vitepress/theme/constrants/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const items_xrobot_platform = [
{
text: "设备接入协议",
link: Chapters.xrobot_platform,
collapsed: false,
collapsed: true,
items: [
{ text: "OTA", link: "OTA" },
{ text: "websocket", link: "websocket" },
Expand Down Expand Up @@ -116,7 +116,7 @@ const items_xrobot_api_server = [
const items_xrobot_api = [
{
text: "平台API",
collapsed: false,
collapsed: true,
link: Chapters.xrobot_api,
items: [
...items_xrobot_api_server,
Expand All @@ -128,7 +128,7 @@ const items_xrobot_api = [
const items_xrobot_mcp = [
{
text: "MCP接入",
collapsed: false,
collapsed: true,
link: Chapters.xrobot_mcp,
items: [
// { text: "硬件MCP", link: "hardware-mcp" },
Expand Down Expand Up @@ -158,7 +158,7 @@ const items_xrobot_guide_quick_start = [
{
text: "快速入门",
link: Chapters.xrobot_guide_quick_start,
collapsed: false,
collapsed: true,
items: [
...items_xrobot_platform_net_config,
...[
Expand Down Expand Up @@ -222,7 +222,7 @@ const items_xrobot_guide = [
{
text: "最佳实践",
link: Chapters.xrobot_guide,
collapsed: false,
collapsed: true,
items: [
...items_xrobot_guide_quick_start,
...items_xrobot_guide_xiaozhi_firmware,
Expand All @@ -237,7 +237,7 @@ const items_xrobot_faq = [
{
text: "常见问题",
link: Chapters.xrobot_faq,
collapsed: false,
collapsed: true,
items: [{ text: "FAQ", link: "faq" }].map((item) =>
apply_prefix(item, Chapters.xrobot_faq)
),
Expand Down