> 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="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FaTAoahHyizxbZzQ10kq9%2Fpublishing-documentation-publish-docs%402x.png?alt=media&amp;token=7217e51d-8c38-45d5-95a2-f49cee149c5f" 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="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FoilRMA6SHJfDUlmxzFSc%2FPublic.png?alt=media&amp;token=79c5b78b-d5e1-4f13-9d87-ff449dbc16ab">25_12_12_public.png</a></td><td><a href="/docs/documentation/zh/fa-bu/publish-a-docs-site/public-publishing.md">公开发布</a></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fjd69hIdmcyS7RbVe6tW8%2FPublic.png?alt=media&amp;token=1a65de91-1101-4cb3-baaa-4f75c9049e72">25_12_12_public_1.png</a></td><td></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fjd69hIdmcyS7RbVe6tW8%2FPublic.png?alt=media&amp;token=1a65de91-1101-4cb3-baaa-4f75c9049e72">25_12_12_public_1.png</a></td></tr><tr><td><strong>通过分享链接私密发布</strong></td><td>通过私密分享链接发布你的文档。</td><td></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Ffc0Pst5E74fYtiKz3Evt%2FShare%20links.png?alt=media&amp;token=699b168a-ca2d-4752-9b28-7be032147e61">25_12_12_share_links_1.png</a></td><td><a href="/docs/documentation/zh/fa-bu/site-audience/share-links.md">通过分享链接进行私密发布</a></td><td></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FpSDF3ZEkFoC35xvrNtLo%2FShare%20links.png?alt=media&amp;token=8decbb40-19a4-49ee-b629-7da186745dbd">25_12_12_share_links.png</a></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FCS9dGgMUG2sLrcAjaRvw%2FShare%20links.png?alt=media&amp;token=0cd92dec-e895-4f4a-93b0-6241f525b734">25_01_06_share_links@2x.png</a></td></tr><tr><td><strong>已认证访问</strong></td><td>通过 OAuth 登录保护你已发布的文档。</td><td></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FvnW7XiU7dys1vIf7Hi6l%2FAuth%20access.png?alt=media&amp;token=5edc9fab-f51f-4acb-a34c-ae16922f7e2f">25_12_10_auth_access_1.png</a></td><td><a href="/docs/documentation/zh/fa-bu/site-audience/authenticated-access.md">已认证访问</a></td><td></td><td></td><td><a href="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fos97IAePIUcHI9MX5p3x%2FAuth%20access.png?alt=media&amp;token=45ee74db-e185-4faf-9b8a-7c86e542b0c5">25_12_10_auth_access.png</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.
