# Publish a docs site

When you finish writing, editing, or importing your content, you can publish it to a docs site and make it available to your selected audience.

The content on your docs site comes from [spaces](/docs/creating-content/content-structure/space.md) in your organization. When you create a site, you can create a new space or link an existing one.

<figure><img src="/files/PV6bHTaqdQhANGNqFTNw" alt="A GitBook screenshot showing the docs sites homepage"><figcaption><p>GitBook's docs sites homepage.</p></figcaption></figure>

### Create a docs site

To create a docs site, click the plus **+** icon next to Docs site in the sidebar to launch the docs site wizard.

Give your site a name, choose a starting point for your content, and select whether you want to publish your site now or later.

If you already have content in a space that you would like to use, you can create a docs site directly from that space by opening the space and clicking **Share** in the top-right corner of the window. Then choosing **Publish as a docs site** from the share modal.

{% hint style="info" %}
**Note:** You can also manage permissions at the site level — allowing you to control who can view or edit each site independently of your organization settings. See [Roles](/docs/collaboration/member-management/roles.md) for more details.&#x20;
{% endhint %}

### Publish a docs site

By default, your site will be published publicly. You can change your site’s visibility in your [site’s settings](/docs/docs-site/site-settings.md).

There are three primary options to choose from when publishing your site:

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-type="image">Cover image (dark)</th><th data-hidden data-type="image">Cover image (dark)</th><th data-hidden data-card-cover-dark data-type="image">Cover image (dark)</th></tr></thead><tbody><tr><td><strong>Public</strong></td><td>Publish your docs publicly to the web.</td><td></td><td><a href="/files/47vaeglRmjg9U9XaHhvE">/files/47vaeglRmjg9U9XaHhvE</a></td><td><a href="/pages/vNPy4P2eYrZWKuUu8zFz">/pages/vNPy4P2eYrZWKuUu8zFz</a></td><td><a href="/files/iHKxWZZLBnk7N1CSSbdl">/files/iHKxWZZLBnk7N1CSSbdl</a></td><td></td><td><a href="/files/iHKxWZZLBnk7N1CSSbdl">/files/iHKxWZZLBnk7N1CSSbdl</a></td></tr><tr><td><strong>Privately with share links</strong></td><td>Publish your docs with private share links.</td><td></td><td><a href="/files/qK0AXRwT4Lq7gbRZ8yiF">/files/qK0AXRwT4Lq7gbRZ8yiF</a></td><td><a href="/pages/g5jAmnNJPWR6JjBFis2I">/pages/g5jAmnNJPWR6JjBFis2I</a></td><td></td><td><a href="/files/dY3MZAa1zAI2NbIE90Pn">/files/dY3MZAa1zAI2NbIE90Pn</a></td><td><a href="/files/mgBprbZYBZ6nW42ewzHx">/files/mgBprbZYBZ6nW42ewzHx</a></td></tr><tr><td><strong>Authenticated Access</strong></td><td>Protect your published docs behind an OAuth sign in.</td><td></td><td><a href="/files/j20Zpf48GM8QbfO86jQX">/files/j20Zpf48GM8QbfO86jQX</a></td><td><a href="/pages/Yn7gzayRYsbHAIeByLZu">/pages/Yn7gzayRYsbHAIeByLZu</a></td><td></td><td></td><td><a href="/files/5oN43u01wtVPnHfvq2ko">/files/5oN43u01wtVPnHfvq2ko</a></td></tr></tbody></table>

### Delete or unpublish a docs site

To delete a docs site, open your site’s dashboard, then open [**Site settings**](/docs/docs-site/site-settings.md#delete-site) from the top-right corner.


---

# Agent Instructions: 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:

```
GET https://gitbook.com/docs/docs-site/publish-a-docs-site.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
