> 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/publish/guides.md).

# 指南

探索用于发布和管理你的 GitBook 文档站点的指南

发布和管理符合受众需求与品牌形象的文档。这些指南涵盖创建文档站点、自定义站点、共享访问权限以及衡量表现。

#### 探索

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-rocket">:rocket:</i></h4></td><td><h4>创建并发布文档站点</h4><p>创建文档站点、添加内容，并发布给受众。</p></td><td><a href="https://gitbook.com/docs/guides/editing-and-publishing-documentation/complete-guide-to-publishing-docs-gitbook.md">How to create and publish docs</a></td></tr><tr><td><h4><i class="fa-palette">:palette:</i></h4></td><td><h4>创建具有品牌特色的文档</h4><p>设置自定义域名、徽标、配色方案等。</p></td><td><a href="https://gitbook.com/docs/guides/docs-best-practices/how-to-create-branded-documentation.md">How to brand your documentation</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><h4>通过命令行发布文档站点</h4><p>使用 GitBook CLI 创建空间并发布文档站点。</p></td><td><a href="https://gitbook.com/docs/guides/editing-and-publishing-documentation/create-and-publish-a-site-from-the-command-line.md">How to publish a docs site with the GitBook CLI</a></td></tr><tr><td><h4><i class="fa-chart-line">:chart-line:</i></h4></td><td><h4>追踪文档分析数据</h4><p>衡量流量、反馈以及访客提出的问题。</p></td><td><a href="https://gitbook.com/docs/guides/docs-analytics/documentation-analytics.md">How to track documentation metrics</a></td></tr></tbody></table>

#### 快速指南

<details>

<summary>如何发布文档站点？</summary>

创建文档站点、添加空间，并选择谁可以访问。

本指南涵盖站点创建、受众设置以及内容发布。

<button type="button" class="button secondary" data-action="ask" data-query="How do I publish a docs site in GitBook? Show me how to create a site, add a space, configure audience settings, and publish content. Include links to the relevant docs pages." data-icon="gitbook-assistant">打开指南</button>

</details>

<details>

<summary>如何自定义文档站点？</summary>

自定义文档站点，使其符合品牌形象并改善导航体验。

本指南涵盖主题、徽标、导航和页面设置。

<button type="button" class="button secondary" data-action="ask" data-query="How do I customize my GitBook docs site? Show me how to configure themes, logos, navigation, and page settings. Include links to the relevant docs pages." data-icon="gitbook-assistant">打开指南</button>

</details>

<details>

<summary>如何控制文档的访问权限？</summary>

选择访客如何访问文档：公开访问、通过分享链接访问，或通过身份验证后访问。

本指南涵盖受众设置、分享链接和经过身份验证的访问。

<button type="button" class="button secondary" data-action="ask" data-query="How do I control access to my GitBook docs? Show me how to configure public access, share links, and authenticated access. Include links to the relevant docs pages." data-icon="gitbook-assistant">打开指南</button>

</details>

<details>

<summary>如何衡量文档站点的表现？</summary>

站点洞察数据会展示访客如何使用文档，以及他们在哪些方面需要帮助。

本指南涵盖流量、页面反馈、搜索和 AI 问题。

<button type="button" class="button secondary" data-action="ask" data-query="How do I measure my GitBook docs site performance? Show me how to use site insights to review traffic, page feedback, search, and AI questions. Include links to the relevant docs pages." data-icon="gitbook-assistant">打开指南</button>

</details>


---

# 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/publish/guides.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.
