> 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/chuang-jian-nei-rong/content-structure/space.md).

# 分区

分区是网站中用于处理一组相关页面的部分。分区可让你撰写内容、整理页面、添加集成等。每个分区都属于一个网站，你还可以将相关分区整理到组中。

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

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-08a3f52de1b1c0f0023784375a8894202b64e9cd%2F25_12_10_creating_content_content_structure_space%402x.png?alt=media" alt="A GitBook screenshot showing a site&#x27;s content tree in the sidebar"><figcaption></figcaption></figure>

### 创建分区

1. 在网站中，点击 **添加…**.
2. 点击 **新建分区**.

在网站顶层或某个组内创建分区。新分区最初会作为 **草稿**：它们属于你的网站，可由团队编辑，但在发布之前访客无法看到。

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

### 发布草稿分区

1. 打开分区的 **操作菜单** <picture><source srcset="broken://files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-aabbca522107ef561981bdfe5af94605b31e0920%2F25_01_10_actions_icon_light.svg?alt=media" alt="The Actions menu icon in GitBook"></picture>.
2. 点击 **发布**.

也可以在结构编辑器中一次性发布多个草稿。

若要预览草稿在网站上的显示效果，请将网站预览切换为 **已发布** 或 **已发布 + 草稿**.

### 复制分区

1. 打开分区的 **操作菜单** <picture><source srcset="broken://files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-aabbca522107ef561981bdfe5af94605b31e0920%2F25_01_10_actions_icon_light.svg?alt=media" alt="The Actions menu icon in GitBook"></picture>.
2. 点击 **复制**.

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

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

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

侧边栏中的内容树为只读。若要将分区移入或移出某个组，或调整分区顺序：

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

更改会立即反映在侧边栏和已发布的网站上。

### 删除分区

1. 打开分区的 **操作菜单** <picture><source srcset="broken://files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-aabbca522107ef561981bdfe5af94605b31e0920%2F25_01_10_actions_icon_light.svg?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/zh/chuang-jian-nei-rong/content-structure/space.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
