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

# 发布文档站点

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

文档站点的内容存放在其 [部分中](/docs/documentation/zh/guan-li-ni-de-zhan-dian/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/xie-zuo/member-management/roles.md) 。
{% endhint %}

### 发布文档站点

要发布你的站点：

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

站点默认是公开的。要更改站点的可见性，请在 **设置** → **受众**。参见 [网站设置](/docs/documentation/zh/guan-li-ni-de-zhan-dian/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 检查** 选项卡，输入 URL，然后点击 **请求编入索引**。Google 会审核该请求，如果页面不再发布，则会将其从索引中移除。

你可以通过在 Google 中搜索以下内容来检查你的站点是否仍被编入索引 `site:` ，后跟你站点的 URL。

要删除文档站点：

1. 打开 **设置** → **常规**.
2. 选择 [**删除网站**](/docs/documentation/zh/guan-li-ni-de-zhan-dian/site-settings.md#delete-site).

删除站点会永久移除其设置和自定义。你的内容仍保留在你所在的组织中——可在 [全部内容](/docs/documentation/zh/chuang-jian-nei-rong/content-structure/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/fa-bu/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.
