> 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 同步。

完整的设置演练请参阅 [快速入门](/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>

### 预览你的站点

点击 **预览** 位于站点标题栏中，查看你的内容在访客眼中的样子——无论是在发布站点之前，还是在你进行更改时。检查你的内容和自定义设置，然后在一切正常后发布。

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

要取消发布你的站点，请打开 **设置** → **常规** 并选择 **取消发布站点**。一旦确认，访客将无法再访问该站点。

取消发布不会改变你的计费。若要调整你付费的站点数量，请在组织的计费设置中更新你的计划。

#### 取消发布或删除后，我的站点仍然可以访问

如果你仍然可以打开该 URL，旧版本通常是缓存导致的——可能在你的浏览器、CDN 或搜索引擎结果中。要确认该站点已不再上线，请在隐私窗口中打开该 URL，或清除该站点的浏览器缓存并重新加载。

#### 我的站点仍然出现在搜索引擎中

搜索引擎需要时间来更新索引，因此已取消发布的站点可能还会在结果中出现一段时间。持续多久取决于抓取频率以及有多少其他站点链接到该页面等因素。

要加快速度，请在 Google Search Console 中请求重新抓取：打开 **网址检查** 选项卡，输入 URL，然后点击 **请求编入索引**。Google 会审核该请求，并在页面不再发布时将其从索引中移除。

你可以通过在 Google 中搜索 `site:` 后跟你站点的 URL，来检查你的站点是否仍被收录。

要删除文档站点：

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.
