> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/docs-site/site-structure/site-sections.md).

# 章节

{% hint style="info" %}
此功能适用于 Ultimate 站点方案。
{% endhint %}

<figure><img src="/files/0ee8611bce34a9d957cfc9f31cad87d654e061df" alt="A GitBook screenshot showing sections on a docs site"><figcaption><p>带有分区的 GitBook 站点示例</p></figcaption></figure>

分区可让你将文档集中到一个站点中。可用它们来组织不同的产品。你也可以通过定制内容服务不同的受众。

将分区分组，可在导航栏中创建下拉菜单。分组会为你的站点增加层级。

### 分区还是变体？

每个分区都包含其自己的内容。请将分区用于不同的文档区域。这些区域可以代表产品、受众或主题。

对于同一内容的不同版本，请使用 [内容变体](/docs/documentation/zh/docs-site/site-structure/variants.md)。变体包括本地化版本和历史产品版本。

### 添加分区

要添加分区：

1. 在站点侧边栏中，打开 **站点结构**.
2. 在表格下方，单击 **新分区**.
3. 选择要添加的内容。

该分区会显示在表格中。它也会作为选项卡显示在你已发布的站点上。

<figure><img src="/files/d71127096fe17e984522527ec20ea9a3bed3c8d6" alt="A GitBook screenshot showing site section structure"><figcaption><p>使用分区为你的文档添加结构。</p></figcaption></figure>

### 创建分区组

分区组会在一个标题下创建导航下拉菜单。分组后的分区可以附加可选描述。描述会显示在分区标题下方。

要创建分组：

1. 在……旁边 **新分区**，单击箭头。
2. 选择 **新分区组**.
3. 输入组名。
4. 单击 **添加分区**.
5. 添加现有分区或选择新内容。

如果你的站点支持多语言，请翻译组标题、分区标题和描述。参见 [多语言分区](/docs/documentation/zh/docs-site/site-structure/multilingual-sections.md).

### 编辑分区

要编辑分区：

1. 在该分区的表格行中，单击 **编辑**.
2. 更改名称、图标或 slug。
3. 单击 **保存**.

要删除分区，请单击 **删除** 位于左下角的

{% hint style="info" %}
更改分区的 slug 会改变其规范 URL。GitBook 会从旧 URL 创建重定向。你也可以 [手动创建重定向](/docs/documentation/zh/docs-site/site-redirects.md).
{% endhint %}

### 重新排序分区

分区会按与……相同的顺序显示 **站点结构** 表格。要重新排序分区，请将其拖动手柄上下拖动。该分区的内容也会随之移动。新顺序会立即显示在你的站点上。

要使用键盘：

1. 按 **空格** 以选择一个分区。
2. 按方向键移动该分区。
3. 按 **空格** 以确认。

### 设置主页分区

访问者打开你的站点时，会显示主页分区。它会加载在你站点的根 URL。其他分区会在根 URL 后附加一个 slug。

要设置主页分区：

1. 在该分区的表格行中，打开 **操作** 菜单。
2. 单击 **设为主页**.

### 设置主页变体

如果一个分区有多个变体，请选择访问者首先打开哪个变体。

要设置主页变体：

1. 打开 **站点设置**.
2. 单击 **结构**.
3. 单击要更新的分区。
4. 找到访问者首先打开的变体。
5. 单击 **设为主页**.

### 移除分区

要移除分区：

1. 在站点侧边栏中，打开 **站点结构**.
2. 打开该分区的 **操作** 菜单。
3. 单击 **移除**.

{% hint style="success" %}
移除分区会取消发布该分区及其变体，但不会删除内容。你仍然可以在 [全部内容](/docs/documentation/zh/creating-content/all-content.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/docs-site/site-structure/site-sections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
