> 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/creating-content/content-structure/space.md).

# 章节

部分是你网站中一块区域，你可以在其中处理一组相关页面。部分可以让你编写内容、组织页面、添加集成等。每个部分都属于某个网站，你可以将相关部分整理成组。

{% hint style="info" %}
GitBook API 将部分表示为 `space` 对象。这对 API 集成或 Git Sync 没有影响。
{% endhint %}

<figure><img src="/files/a0b7d3d09be72b916603f0a7219fa162a728db2b" alt="A GitBook screenshot showing a site&#x27;s content tree in the sidebar"><figcaption></figcaption></figure>

### 创建部分

1. 在你的网站中，点击 **添加…**.
2. 点击 **新部分**.

在你的网站顶层或组内创建一个部分。新部分最初会显示为 **草稿**：是你网站的一部分，可由你的团队编辑，但在你发布之前对访客不可见。

将鼠标悬停在部分标题中的名称上，即可编辑部分名称。

### 发布草稿部分

1. 打开该部分的 **操作菜单** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/d05670ba93b683794fb3fe95a9fc7ab5c7fceafd" alt="The Actions menu icon in GitBook"></picture>.
2. 点击 **发布**.

或者在结构编辑器中一次发布多个草稿。

要预览草稿在你网站上的显示效果，可在以下项之间切换网站预览： **实时** 和 **实时 + 草稿**.

### 复制部分

1. 打开该部分的 **操作菜单** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/d05670ba93b683794fb3fe95a9fc7ab5c7fceafd" alt="The Actions menu icon in GitBook"></picture>.
2. 点击 **复制**.

复制部分会在相同位置（网站或组）创建源部分的副本。

{% hint style="warning" %}
复制部分会复制源部分中的内容，但不会复制修订或版本历史。
{% endhint %}

### 移动或重新排序部分

侧边栏中的内容树是只读的。若要将部分移入或移出某个组，或重新排序部分：

1. 打开 **结构编辑器**.
2. 将该部分拖到新位置。

更改会立即反映到侧边栏以及你已发布的网站上。

### 删除部分

1. 打开该部分的 **操作菜单** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/d05670ba93b683794fb3fe95a9fc7ab5c7fceafd" alt="The Actions menu icon in GitBook"></picture>.
2. 点击 **删除**.

{% hint style="warning" %}
**可从废纸篓中恢复已删除的部分，最长可达 7 天。** 之后，GitBook 会将其永久删除。
{% 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/creating-content/content-structure/space.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.
