> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.another-horizon.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# 导航

> 设计契合用户需求的信息架构。

`docs.json` 中的 [navigation](/zh/organize/settings#param-navigation) 属性用于控制文档的结构与信息层级。

通过合理配置导航，你可以更好地组织内容，帮助用户迅速找到所需信息。

在导航的根级选择一种主要的组织方式。确定主要方式后，你可以在其内部嵌套其他导航元素。

<div id="pages">
  ## 页面
</div>

页面是最基本的导航组件。每个页面都是文档存储库中的一个 MDX 文件。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/pages-light.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=9c7ce790b59d24d5ec77140bd6ace089" alt="页面的装饰性图形。" width="1184" height="320" data-path="images/navigation/pages-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/pages-dark.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=7663c722ce9251555a86474695a7514c" alt="页面的装饰性图形。" width="1184" height="320" data-path="images/navigation/pages-dark.png" />

在 `navigation` 对象中，`pages` 是一个数组，其中每个条目都必须指向一个[页面文件](/zh/organize/pages)的路径。

```json theme={null}
{
  "navigation": {
    "pages": [
      "settings",
      "pages",
      "navigation",
      "themes",
      "custom-domain"
    ]
  }
}
```

<div id="groups">
  ## 分组
</div>

使用分组将侧边栏导航组织成不同的部分。分组可以相互嵌套、使用标签进行标注，并配合 icon 展示样式。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/groups-light.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=fa31b9f0b642261b51a8764aa5f2b9dd" alt="关于分组的装饰性图像。" width="1184" height="320" data-path="images/navigation/groups-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/groups-dark.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=1a5ce5b3a060be000f4745951f72394e" alt="关于分组的装饰性图像。" width="1184" height="320" data-path="images/navigation/groups-dark.png" />

在 `navigation` 对象中，`groups` 是一个数组，其中每一项都是一个对象，每个对象都必须包含 `group` 字段和 `pages` 字段。`icon`、`tag` 和 `expanded` 字段是可选的。

```json theme={null}
{
  "navigation": {
    "groups": [
      {
        "group": "开始使用",
        "icon": "play",
        "pages": [
          "quickstart",
          {
            "group": "编辑",
            "expanded": false,
            "icon": "pencil",
            "pages": [
              "installation",
              "editor"
            ]
          }
        ]
      },
      {
        "group": "编写内容",
        "icon": "notebook-text",
        "tag": "NEW",
        "pages": [
          "writing-content/page",
          "writing-content/text"
        ]
      }
    ]
  }
}
```

<div id="default-expanded-state">
  ### 默认展开状态
</div>

使用 `expanded` 属性来控制导航侧边栏中嵌套分组的默认状态。

* `expanded: true`：分组默认处于展开状态。
* `expanded: false` 或省略：分组默认处于折叠状态。

<Note>
  `expanded` 属性只会影响嵌套分组——也就是分组中的分组。顶级分组始终是展开的，且无法折叠。
</Note>

```json theme={null}
{
  "group": "开始使用",
  "pages": [
    "quickstart",
    {
      "group": "高级功能",
      "expanded": false,
      "pages": ["installation", "configuration"]
    }
  ]
}
```

<div id="tabs">
  ## 选项卡
</div>

选项卡可为你的文档创建彼此独立的 URL 路径分区。它们会在文档顶部生成一条水平导航栏，方便用户在各个部分之间切换。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/tabs-light.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=e7391484b5b9cbaed18440a5a898d1cf" alt="选项卡导航的装饰性图形。" width="1184" height="320" data-path="images/navigation/tabs-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/tabs-dark.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=ddf5541badc950b2bfd6981f231b7370" alt="选项卡导航的装饰性图形。" width="1184" height="320" data-path="images/navigation/tabs-dark.png" />

在 `navigation` 对象中，`tabs` 是一个数组，其中每个项都是一个对象，必须包含 `tab` 字段，并且还可以包含其他导航字段，例如 groups、pages、icon，或指向外部页面的链接。

```json theme={null}
{
  "navigation": {
    "tabs": [
      {
        "tab": "API 参考",
        "icon": "square-terminal",
        "pages": [
          "api-reference/get",
          "api-reference/post",
          "api-reference/delete"
        ]
      },
      {
        "tab": "SDK",
        "icon": "code",
        "pages": [
          "sdk/fetch",
          "sdk/create",
          "sdk/delete"
        ]
      },
      {
        "tab": "博客",
        "icon": "newspaper",
        "href": "https://external-link.com/blog"
      }
    ]
  }
}
```

<div id="menus">
  ### 菜单
</div>

菜单会为某个标签页添加下拉式导航项。使用菜单可帮助用户直接进入该标签页内的特定页面。

在 `navigation` 对象中，`menu` 是一个数组，其中每个条目都是一个对象，必须包含 `item` 字段，并且可以包含其他导航字段，例如 groups、pages、icons，或指向外部页面的链接。

菜单项只能包含 groups、pages 和外部链接。

```json theme={null}
{
  "navigation": {
    "tabs": [
      {
        "tab": "开发者工具",
        "icon": "square-terminal",
        "menu": [
          {
            "item": "API 参考",
            "icon": "rocket",
            "groups": [
              {
                "group": "核心端点",
                "icon": "square-terminal",
                "pages": [
                  "api-reference/get",
                  "api-reference/post",
                  "api-reference/delete"
                ]
              }
            ]
          },
          {
            "item": "SDK",
            "icon": "code",
            "description": "SDK 用于与 API 进行交互。",
            "pages": [
              "sdk/fetch",
              "sdk/create",
              "sdk/delete"
            ]
          }
        ]
      }
    ]
  }
}
```

<div id="anchors">
  ## 锚点
</div>

锚点会在侧边栏顶部添加常驻的导航项。你可以用它们对内容进行分区、快速访问外部资源，或创建醒目的行动号召。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/anchors-light.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=8977f7221e35206b7724a54c3a89c085" alt="锚点导航的装饰性图形。" width="1184" height="320" data-path="images/navigation/anchors-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/anchors-dark.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=17dc150ca41a65586249101e761e7d85" alt="锚点导航的装饰性图形。" width="1184" height="320" data-path="images/navigation/anchors-dark.png" />

在 `navigation` 对象中，`anchors` 是一个数组，其中每个条目都是一个对象，必须包含 `anchor` 字段，并且可以包含其他导航字段，例如 groups、页面、icon，或指向外部页面的链接。

```json theme={null}
{
  "navigation": {
    "anchors": [
      {
        "anchor": "文档",
        "icon": "book-open",
        "pages": [
          "quickstart",
          "development",
          "navigation"
        ]
      },
      {
        "anchor": "API 参考",
        "icon": "square-terminal",
        "pages": [
          "api-reference/get",
          "api-reference/post",
          "api-reference/delete"
        ]
      },
      {
        "anchor": "博客",
        "href": "https://external-link.com/blog"
      }
    ]
  }
}
```

<div id="global-anchors">
  ### 全局锚点
</div>

使用全局锚点为需要在所有页面中显示的外部链接提供入口，而不受用户当前查看的导航部分影响。全局锚点特别适合用于链接到文档之外的资源，例如博客、社区论坛或支持门户。

<Note>
  全局锚点必须包含指向外部 URL 的 `href` 字段，且不能包含相对路径。
</Note>

```json theme={null}
{
  "navigation": {
    "global":  {
      "anchors": [
        {
          "anchor": "社区",
          "icon": "house",
          "href": "https://slack.com"
        },
        {
          "anchor": "博客",
          "icon": "pencil",
          "href": "https://mintlify.com/blog"
        }
      ]
    },
    "tabs": /*...*/
  }
}
```

<div id="dropdowns">
  ## 下拉菜单
</div>

下拉菜单位于侧边栏导航顶部的可展开菜单中。下拉菜单中的每个项都会跳转到文档的某个部分。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/dropdowns-light.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=65ae299840c9fae3eed563680063b828" alt="下拉导航的装饰性图形。" width="1184" height="320" data-path="images/navigation/dropdowns-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/dropdowns-dark.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=17f86aafb569446d48f3488769c84aec" alt="下拉导航的装饰性图形。" width="1184" height="320" data-path="images/navigation/dropdowns-dark.png" />

在 `navigation` 对象中，`dropdowns` 是一个数组，其中每个条目都是一个对象，必须包含 `dropdown` 字段，并且可以包含其他导航字段，例如 groups、pages、icons，或指向外部页面的链接。

```json theme={null}
{
  "navigation": {
    "dropdowns": [
      {
        "dropdown": "文档",
        "icon": "book-open",
        "pages": [
          "quickstart",
          "development",
          "navigation"
        ]
      },
      {
        "dropdown": "API 参考",
        "icon": "square-terminal",
        "pages": [
          "api-reference/get",
          "api-reference/post",
          "api-reference/delete"
        ]
      },
      {
        "dropdown": "博客",
        "href": "https://external-link.com/blog"
      }
    ]
  }
}
```

<div id="products">
  ## 产品
</div>

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/product-switcher-light.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=3601f68a3a9c622e876885c1a83649b8" alt="产品切换器的装饰性图形。" width="2368" height="640" data-path="images/navigation/product-switcher-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/product-switcher-dark.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=dd557136f7a5f0b4c8289a8662b4d704" alt="产品切换器的装饰性图形。" width="2368" height="640" data-path="images/navigation/product-switcher-dark.png" />

“产品”用于在导航中创建专门的分区，以组织针对特定产品的文档。使用“产品”将文档中的不同产品、服务或重要功能集彼此区分开。

在 `navigation` 对象中，`products` 是一个数组，其中每个条目都是一个对象，必须包含 `product` 字段，并且可以包含其他导航字段，例如 groups、pages、icons，或指向外部页面的链接。

```json theme={null}
{
  "navigation": {
    "products": [
      {
        "product": "Core API",
        "description": "核心 API 说明",    
        "icon": "api",
        "groups": [
          {
            "group": "快速入门",
            "pages": [
              "core-api/quickstart",
              "core-api/authentication"
            ]
          },
          {
            "group": "端点",
            "pages": [
              "core-api/users",
              "core-api/orders"
            ]
          }
        ]
      },
      {
        "product": "Analytics Platform",
        "description": "Analytics 平台说明",
        "icon": "chart-bar",
        "pages": [
          "analytics/overview",
          "analytics/dashboard",
          "analytics/reports"
        ]
      },
      {
        "product": "Mobile SDK",
        "description": "移动端 SDK 说明",
        "icon": "smartphone",
        "href": "https://mobile-sdk-docs.example.com"
      }
    ]
  }
}
```

<div id="openapi">
  ## OpenAPI
</div>

将 OpenAPI 规范直接集成到导航结构中，以自动生成 API 文档。你可以创建专门的 API 部分，或将端点（endpoint）页面放入其他导航组件中。

可以在导航层级的任意级别设置一个默认的 OpenAPI 规范。子元素将继承该规范，除非它们定义了自己的规范。

<Note>
  当你在某个导航元素（例如 anchor、tab 或 group）上添加 `openapi` 属性且未指定任何页面时，Mintlify 会自动为 OpenAPI 规范中定义的 **所有端点** 生成页面。

  若要控制显示哪些端点，请在 `pages` 数组中显式列出所需的端点。
</Note>

有关在文档中引用 OpenAPI 端点的更多信息，请参阅 [OpenAPI 设置](/zh/api-playground/openapi-setup)。

```json theme={null}
{
  "navigation": {
    "groups": [
      {
        "group": "API 参考",
        "openapi": "/path/to/openapi-v1.json",
        "pages": [
          "概述",
          "认证",
          "GET /users",
          "POST /users",
          {
            "group": "产品",
            "openapi": "/path/to/openapi-v2.json",
            "pages": [
              "GET /products",
              "POST /products"
            ]
          }
        ]
      }
    ]
  }
}
```

<div id="versions">
  ## 版本
</div>

将导航划分为不同版本。可通过下拉菜单选择版本。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/versions-light.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=1e2a7321a615cc3db2b379cb5b1eb158" alt="版本切换器的装饰性图形" width="1184" height="320" data-path="images/navigation/versions-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/versions-dark.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=9d716958df8ca7204f349dc302cafb41" alt="版本切换器的装饰性图形" width="1184" height="320" data-path="images/navigation/versions-dark.png" />

在 `navigation` 对象中，`versions` 是一个数组，每个项都是一个对象，必须包含 `version` 字段，并且可包含任何其他导航相关字段。

```json theme={null}
{
  "navigation": {
    "versions": [
      {
        "version": "1.0.0",
        "groups": [
          {
            "group": "开始使用",
            "pages": ["v1/overview", "v1/quickstart", "v1/development"]
          }
        ]
      },
      {
        "version": "2.0.0",
        "groups": [
          {
            "group": "开始使用",
            "pages": ["v2/overview", "v2/quickstart", "v2/development"]
          }
        ]
      }
    ]
  }
}
```

<div id="languages">
  ## 语言
</div>

将导航按语言进行划分。用户可以从下拉菜单中选择语言。

<img className="block dark:hidden pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages-light.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=0aefcc4237252deea800974e227f9093" alt="语言切换器的装饰性图形。" width="1184" height="320" data-path="images/navigation/languages-light.png" />

<img className="hidden dark:block pointer-events-none" src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages-dark.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=777965bd327e263e4f533e94e7c93e2d" alt="语言切换器的装饰性图形。" width="1184" height="320" data-path="images/navigation/languages-dark.png" />

在 `navigation` 对象中，`languages` 是一个数组，其中每一项都是一个对象，必须包含 `language` 字段，并且可以包含任意其他导航字段，包括特定语言的横幅配置。

我们目前支持以下语言的本地化：

<CardGroup cols={2}>
  <Card title="阿拉伯语（ar）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/ar.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=1d2b397bae3100c21089394967d5b6ed" horizontal width="60" height="60" data-path="images/navigation/languages/ar.png" />

  <Card title="捷克语（cs）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/cs.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=bcdcc7105aa807745d5a6e5995143b2d" horizontal width="480" height="480" data-path="images/navigation/languages/cs.png" />

  <Card title="中文（cn）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/cn.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=99c00d04cf00d95d817243e86caee8ff" horizontal width="60" height="60" data-path="images/navigation/languages/cn.png" />

  <Card title="中文（zh-Hant）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/cn.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=99c00d04cf00d95d817243e86caee8ff" horizontal width="60" height="60" data-path="images/navigation/languages/cn.png" />

  <Card title="荷兰语（nl）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/nl.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=ce46a9dda6d7392480f7ce4075e188df" horizontal width="480" height="480" data-path="images/navigation/languages/nl.png" />

  <Card title="英语（en）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/en.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=b151ddb015628c19c00932810eab6cf5" horizontal width="60" height="60" data-path="images/navigation/languages/en.png" />

  <Card title="法语（fr）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/fr.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=0c08d85a6310af694c8e3d9de22dd77b" horizontal width="60" height="60" data-path="images/navigation/languages/fr.png" />

  <Card title="德语（de）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/de.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=f91331daba7fb3a197871d65ed38d135" horizontal width="60" height="60" data-path="images/navigation/languages/de.png" />

  <Card title="希伯来语（he）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/he.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=0f8fd0220d50d6dc29334681881436b8" horizontal width="480" height="480" data-path="images/navigation/languages/he.png" />

  <Card title="印地语（hi）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/hi.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=da4adc3507f2e358bcf52ce3406a87c4" horizontal width="480" height="480" data-path="images/navigation/languages/hi.png" />

  <Card title="印尼语（id）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/id.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=f9d62873a61be465cd00517a1f3d3b77" horizontal width="60" height="60" data-path="images/navigation/languages/id.png" />

  <Card title="意大利语（it）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/it.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=6bc84439d7708f6e749bdc5cb8e53076" horizontal width="60" height="60" data-path="images/navigation/languages/it.png" />

  <Card title="日语（jp）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/jp.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=bf989858bb84d8e530256f1dfd79e172" horizontal width="60" height="60" data-path="images/navigation/languages/jp.png" />

  <Card title="韩语（ko）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/ko.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=6ac5841deffd49b6f0e4f3dd344483ce" horizontal width="60" height="60" data-path="images/navigation/languages/ko.png" />

  <Card title="拉脱维亚语（lv）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/lv.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=2156d30e10212a2849d9402ea28b9aae" horizontal width="480" height="480" data-path="images/navigation/languages/lv.png" />

  <Card title="挪威语（no）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/no.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=daffdef00e4c2f4ce37bddfc1c0b1923" horizontal width="480" height="480" data-path="images/navigation/languages/no.png" />

  <Card title="波兰语（pl）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/pl.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=381ea98b6166475b88dc7d54d19b4456" horizontal width="480" height="480" data-path="images/navigation/languages/pl.png" />

  <Card title="葡萄牙语（pt-BR）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/pt-br.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=b7184110f9c80dd41a7e464eba0a3a8e" horizontal width="60" height="60" data-path="images/navigation/languages/pt-br.png" />

  <Card title="罗马尼亚语（ro）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/ro.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=551adefac53399decf0fc342be780387" horizontal width="480" height="480" data-path="images/navigation/languages/ro.png" />

  <Card title="俄语（ru）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/ru.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=6613ba259835e368403641ae3fea58ea" horizontal width="60" height="60" data-path="images/navigation/languages/ru.png" />

  <Card title="西班牙语（es）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/es.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=4ea8c27c82f881483942a652a6e948c1" horizontal width="60" height="60" data-path="images/navigation/languages/es.png" />

  <Card title="瑞典语（sv）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/sv.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=a8067feb17d3b6a9503762fadf5b5b9c" horizontal width="480" height="480" data-path="images/navigation/languages/sv.png" />

  <Card title="土耳其语（tr）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/tr.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=68b9d91330437a1783d0873e91d145e3" horizontal width="60" height="60" data-path="images/navigation/languages/tr.png" />

  <Card title="乌克兰语（ua）" icon="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/navigation/languages/ua.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=a8c8c36fe3ac2153f78cb6bfe9a002a0" horizontal width="480" height="480" data-path="images/navigation/languages/ua.png" />

  <Card title="乌兹别克语（uz）" icon="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/languages/uz.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=87098bb08e3f7a6fae5709204315d91c" horizontal width="480" height="480" data-path="images/navigation/languages/uz.png" />

  <Card title="越南语（vi）" icon="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/navigation/languages/vi.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=d1102f0e3eab69b9d759b2384dd57b1f" horizontal width="480" height="480" data-path="images/navigation/languages/vi.png" />
</CardGroup>

```json theme={null}
{
  "navigation": {
    "languages": [
      {
        "language": "en",
        "banner": {
          "content": "🚀 Version 2.0 is now live! See our [changelog](/en/changelog) for details.",
          "dismissible": true
        },
        "groups": [
          {
            "group": "开始使用",
            "pages": ["en/overview", "en/quickstart", "en/development"]
          }
        ]
      },
      {
        "language": "es",
        "banner": {
          "content": "🚀 ¡La versión 2.0 ya está disponible! Consulta nuestro [registro de cambios](/es/changelog).",
          "dismissible": true
        },
        "groups": [
          {
            "group": "开始使用",
            "pages": ["es/overview", "es/quickstart", "es/development"]
          }
        ]
      }
    ]
  }
}
```

如需自动翻译支持，请[联系销售团队](mailto:gtm@mintlify.com)以商讨解决方案。

<div id="nesting">
  ## 嵌套
</div>

导航元素可以相互嵌套，以创建复杂的层级结构。你必须有一个根级父导航元素，例如 tabs、groups 或下拉菜单。你可以在主要导航结构中嵌套其他类型的导航元素。

在导航层级结构的每一层中，每个导航元素只能包含一种类型的子元素。比如，一个 tab 可以包含锚点，锚点下面可以包含 groups，但一个 tab 不能在同一级同时包含锚点和 groups。

<CodeGroup>
  ```json 包含锚点的 Tabs theme={null}
  {
    "navigation": {
      "tabs": [
        {
          "tab": "Documentation",
          "tabs": [
            {
              "anchor": "Guides",
              "icon": "book-open",
              "pages": ["quickstart", "tutorial"]
            },
            {
              "anchor": "API Reference",
              "icon": "code",
              "pages": ["api/overview", "api/endpoints"]
            }
          ]
        },
        {
          "tab": "Resources",
          "groups": [
            {
              "group": "Help",
              "pages": ["support", "faq"]
            }
          ]
        }
      ]
    }
  }
  ```

  ```json 包含标签页的锚点 theme={null}
  {
    "navigation": {
      "tabs": [
        {
          "anchor": "Documentation",
          "icon": "book-open",
          "tabs": [
            {
              "tab": "Guides",
              "pages": ["quickstart", "tutorial"]
            },
            {
              "tab": "API",
              "pages": ["api/overview", "api/endpoints"]
            }
          ]
        },
        {
          "anchor": "Community",
          "icon": "users",
          "tab": "https://community.example.com"
        }
      ]
    }
  }
  ```

  ```json 包含标签页的产品 theme={null}
  {
    "navigation": {
      "products": [
        {
          "product": "Platform",
          "icon": "server",
          "tabs": [
            {
              "tab": "Documentation",
              "groups": [
                {
                  "group": "Getting started",
                  "pages": ["platform/quickstart"]
                }
              ]
            },
            {
              "tab": "API Reference",
              "pages": ["platform/api"]
            }
          ]
        },
        {
          "product": "Mobile SDK",
          "icon": "mobile",
          "pages": ["mobile/overview"]
        }
      ]
    }
  }
  ```

  ```json 具有标签页和菜单的多产品 SaaS theme={null}
  {
    "navigation": {
      "products": [
        {
          "product": "Platform",
          "icon": "cloud",
          "tabs": [
            {
              "tab": "Documentation",
              "menu": [
                {
                  "item": "Getting Started",
                  "icon": "rocket",
                  "groups": [
                    {
                      "group": "Setup",
                      "pages": ["platform/install", "platform/config"]
                    },
                    {
                      "group": "Core Concepts",
                      "pages": ["platform/concepts/auth", "platform/concepts/data"]
                    }
                  ]
                },
                {
                  "item": "Guides",
                  "icon": "book",
                  "pages": ["platform/guides/deployment", "platform/guides/scaling"]
                }
              ]
            },
            {
              "tab": "API Reference",
              "groups": [
                {
                  "group": "REST API",
                  "pages": ["platform/api/users", "platform/api/projects"]
                },
                {
                  "group": "GraphQL",
                  "pages": ["platform/api/graphql/queries", "platform/api/graphql/mutations"]
                }
              ]
            }
          ]
        },
        {
          "product": "Analytics",
          "icon": "chart-bar",
          "tabs": [
            {
              "tab": "Documentation",
              "groups": [
                {
                  "group": "Getting Started",
                  "pages": ["analytics/quickstart", "analytics/setup"]
                }
              ]
            },
            {
              "tab": "API",
              "pages": ["analytics/api/events", "analytics/api/reports"]
            }
          ]
        }
      ]
    }
  }
  ```

  ```json 带有标签页的多版本文档 theme={null}
  {
    "navigation": {
      "versions": [
        {
          "version": "v2.0",
          "tabs": [
            {
              "tab": "Documentation",
              "groups": [
                {
                  "group": "Getting Started",
                  "pages": ["v2/quickstart", "v2/migration-from-v1"]
                },
                {
                  "group": "Features",
                  "pages": ["v2/features/auth", "v2/features/api"]
                }
              ]
            },
            {
              "tab": "API Reference",
              "pages": ["v2/api/overview", "v2/api/endpoints"]
            }
          ]
        },
        {
          "version": "v1.0",
          "tabs": [
            {
              "tab": "Documentation",
              "groups": [
                {
                  "group": "Getting Started",
                  "pages": ["v1/quickstart"]
                }
              ]
            },
            {
              "tab": "API Reference",
              "pages": ["v1/api/overview"]
            }
          ]
        }
      ]
    }
  }
  ```
</CodeGroup>

<div id="breadcrumbs">
  ## 面包屑导航
</div>

面包屑导航会在页面顶部显示完整的导航路径。某些主题默认启用面包屑导航，另一些则未启用。你可以在 `docs.json` 中通过 `styling` 属性控制站点是否启用面包屑导航。

<CodeGroup>
  ```json Display full breadcrumbs theme={null}
  "styling": {
    "eyebrows": "breadcrumbs"
  }
  ```

  ```json Display parent section only theme={null}
  "styling": {
    "eyebrows": "section"
  }
  ```
</CodeGroup>

<div id="interaction-configuration">
  ## 交互配置
</div>

在 `docs.json` 中使用 `interaction` 属性来控制用户与导航元素的交互方式。

<div id="enable-auto-navigation-for-groups">
  ### 为 groups 启用自动导航
</div>

当用户展开一个导航分组时，某些主题会自动跳转到该分组中的第一页。你可以使用 `drilldown` 选项覆盖主题的默认行为。

* 设为 `true`：在选择导航分组时强制自动跳转到第一页。
* 设为 `false`：不进行跳转，选择时仅展开或折叠分组。
* 留空不设置：使用主题的默认行为。

<CodeGroup>
  ```json 强制导航 theme={null}
  "interaction": {
    "drilldown": true  // 当用户展开下拉菜单时强制跳转到第一页
  }
  ```

  ```json 阻止导航 theme={null}
  "interaction": {
    "drilldown": false // 从不跳转，仅展开或折叠该分组
  }
  ```
</CodeGroup>
