> 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/publish-a-docs-site.md).

# 发布文档站点

当你完成撰写、编辑或导入内容后，将其发布给你选定的受众。

文档站点的内容存放在其 [章节中](/docs/documentation/zh/docs-site/site-structure.md). 你编辑的结构就是访客看到的结构。新章节最初会以草稿形式存在，因此你可以控制已发布站点上显示的内容。

<figure><img src="/files/2eb3ab690e761a1c5deb232a8bde4ae8029a290c" alt="A GitBook screenshot showing the organization Home"><figcaption><p>你的组织主页。</p></figcaption></figure>

### 创建文档站点

要创建文档站点：

1. 从你的组织 **主页**，点击 **+** 图标，位于 **站点**.
2. 输入一个访客能够识别的名称。
3. 点击 **创建**.
4. 选择一个起点：文档模板、导入、OpenAPI 规范、空白章节或 Git Sync。

如需完整的设置演练，请参阅 [快速入门](/docs/documentation/zh/getting-started/quickstart.md).

{% hint style="info" %}
你可以在 **设置** → **成员**中管理站点权限。这使你能够独立于组织设置来控制谁可以查看或编辑每个站点。请参阅 [角色](/docs/documentation/zh/collaboration/member-management/roles.md) 了解详情。
{% endhint %}

### 发布文档站点

要发布你的站点：

1. 从你的组织 **主页**，打开你的站点。
2. 点击 **发布** ，位于站点页眉中。

站点默认是公开的。你可以在 **设置** → **受众**中更改站点的可见性。请参阅 [站点设置](/docs/documentation/zh/docs-site/site-settings.md).

选择以下受众选项之一：

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="image">封面图像</th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-type="image">封面图像（深色）</th><th data-hidden data-type="image">封面图像（深色）</th><th data-hidden data-card-cover-dark data-type="image">封面图像（深色）</th></tr></thead><tbody><tr><td><strong>公开</strong></td><td>将你的文档公开发布到网络。</td><td></td><td><a href="/files/5d8ef037c528f36d3bcf4046ef19212f87f81600">/files/5d8ef037c528f36d3bcf4046ef19212f87f81600</a></td><td><a href="/pages/7a101f2f69c3bf8373f8af53f2d4cceb221db13b">/pages/7a101f2f69c3bf8373f8af53f2d4cceb221db13b</a></td><td><a href="/files/389f8e95b16d98a327e9f5c88b74fabbfb844118">/files/389f8e95b16d98a327e9f5c88b74fabbfb844118</a></td><td></td><td><a href="/files/389f8e95b16d98a327e9f5c88b74fabbfb844118">/files/389f8e95b16d98a327e9f5c88b74fabbfb844118</a></td></tr><tr><td><strong>通过私密分享链接</strong></td><td>通过私密分享链接发布你的文档。</td><td></td><td><a href="/files/3766c9f2f455edcf8aff7dfebade53d5a20e7907">/files/3766c9f2f455edcf8aff7dfebade53d5a20e7907</a></td><td><a href="/pages/b96306b593cdf40761b54a4223c4391364dee3c6">/pages/b96306b593cdf40761b54a4223c4391364dee3c6</a></td><td></td><td><a href="/files/57cc8ee20af2be4b1649bb29ffc9726f478e6382">/files/57cc8ee20af2be4b1649bb29ffc9726f478e6382</a></td><td><a href="/files/ab3b45cd23a25257168ad2107e5a06dfca97f607">/files/ab3b45cd23a25257168ad2107e5a06dfca97f607</a></td></tr><tr><td><strong>身份验证访问</strong></td><td>通过 OAuth 登录来保护你已发布的文档。</td><td></td><td><a href="/files/80c2ff9407cb45093d5af56524536608b3c7006e">/files/80c2ff9407cb45093d5af56524536608b3c7006e</a></td><td><a href="/pages/a8e62436edba17e40ff6c1e76e189f6adf89d696">/pages/a8e62436edba17e40ff6c1e76e189f6adf89d696</a></td><td></td><td></td><td><a href="/files/e0dbc878ac796b4442ea2841c95cb70f610aaac4">/files/e0dbc878ac796b4442ea2841c95cb70f610aaac4</a></td></tr></tbody></table>

### 删除或取消发布文档站点

要取消发布你的站点，请打开 **设置** → **常规** 并选择 **取消发布站点**.

要删除文档站点：

1. 打开 **设置** → **常规**.
2. 选择 [**删除站点**](/docs/documentation/zh/docs-site/site-settings.md#delete-site).

删除站点会永久移除其设置和自定义内容。你的内容仍保留在你的组织中——可在以下位置找到： [所有内容](/docs/documentation/zh/creating-content/all-content.md).


---

# 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/publish-a-docs-site.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.
