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

# Guides

Publish and manage documentation that matches your audience and brand. These guides cover creating a docs site, customizing it, sharing access, and measuring performance.

#### Explore

<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>Create and publish a docs site</h4><p>Create a docs site, add content, and publish it for your audience.</p></td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/I5zoKKnt6XBITF2cc838">/spaces/LBGJKQic7BQYBXmVSjy0/pages/I5zoKKnt6XBITF2cc838</a></td></tr><tr><td><h4><i class="fa-palette">:palette:</i></h4></td><td><h4>Create branded documentation</h4><p>Set a custom domain, logo, color scheme, and more.</p></td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/9UBFfdU5aXiP62oCWT5I">/spaces/LBGJKQic7BQYBXmVSjy0/pages/9UBFfdU5aXiP62oCWT5I</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><h4>Publish a docs site from the command line</h4><p>Create a space and publish a docs site with the GitBook CLI.</p></td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/zmpnDiKX098r2S6GXiyP">/spaces/LBGJKQic7BQYBXmVSjy0/pages/zmpnDiKX098r2S6GXiyP</a></td></tr><tr><td><h4><i class="fa-chart-line">:chart-line:</i></h4></td><td><h4>Track documentation analytics</h4><p>Measure traffic, feedback, and the questions visitors ask.</p></td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/OykWapcRQTN6cSKDjufw">/spaces/LBGJKQic7BQYBXmVSjy0/pages/OykWapcRQTN6cSKDjufw</a></td></tr></tbody></table>

#### Quick guides

<details>

<summary>How do I publish a docs site?</summary>

Create a docs site, add a space, and choose who can access it.

This guide covers site creation, audience settings, and publishing your content.

<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">Open guide</button>

</details>

<details>

<summary>How do I customize my docs site?</summary>

Customize your docs site to match your brand and improve navigation.

This guide covers themes, logos, navigation, and page settings.

<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">Open guide</button>

</details>

<details>

<summary>How do I control access to my docs?</summary>

Choose whether visitors access your docs publicly, through share links, or after authentication.

This guide covers audience settings, share links, and authenticated access.

<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">Open guide</button>

</details>

<details>

<summary>How do I measure docs site performance?</summary>

Site insights show how visitors use your documentation and where they need help.

This guide covers traffic, page feedback, search, and AI questions.

<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">Open guide</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 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/publish/guides.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.
