In this guide, we’ll walk you through the process of publishing documentation in GitBook. You can do this by creating a in your GitBook organization, then linking content from your .
It’s a super-simple process that lets you control all the aspects of your published documentation in one place — including customization options, audience settings, and more. And best of all, all you need to get started is a space in GitBook with some content!
How to create a docs site
Ready to publish your docs? Let’s start by creating a docs site and trying some customization options. There are a couple of different ways to do this, but they all ultimately have the same outcome.
First, You can hit the plus + icon next to the Docs sites section header in the sidebar to open the site creation flow. This will guide you through the process of creating and naming your site so you can add your content or just see what a published site will look.
Alternatively, if you know which space you want to publish, you can simply navigate to it, click Share in the top-right corner, then choose the Publish to the web tab from the menu. In this menu, you can create a new docs site or link to an existing docs site in your organization. If the space is already linked to one or more docs sites, you’ll see those listed here instead.
If you haven’t already, now is a good time to name your docs site so it’s easy to find later — you can do that at the top of the site’s main dashboard. We’d recommend something descriptive to make it identifiable with a glance later.
Adding more content to your site
You can link more than one space to a single docs site if you like, and there are two ways to do this — with site sections and site variants.
[screenshot showing site sections]
[screenshot showing variants]
Customize your site
While you could publish at this stage without making any further changes, let’s quickly run through some of your other options. That said, if you just want to publish without making any further changes, head down to the Publishing section below to get your docs site live in seconds!
To start customizing your docs site, open its dashboard and click Customize below the title. By default, you’ll begin editing the settings for your entire site — so if you’ve linked multiple spaces to a single site, these changes will apply to all of them.
You can also select individual linked spaces if you want to control settings at a more granular level. For example, if you’ve linked spaces that refer to different products or releases, you may want to customize each one in a different way to match individual brands.
All the changes you make in the customization menu will appear in the preview on the right-hand side, so you can see how your choices look in context.
It’s worth noting that our advanced customization options are only available if you have a Premium or Ultimate site, so if you want the full suite of controls you may need to upgrade.
Change page options
In Page Options you can select one of our preset options, or manually toggle different controls on and off to create a custom layout.
Change your site’s settings
Once you’ve got your site looking the way you want, you can also take a quick look over your site’s settings. Click Settings in the top-right corner of your site dashboard to see your options.
Here you’ll see various sections on the left-hand side. In the General tab, you can change your site title and slug, add a social preview image, and unpublish or delete your site.
Finally, the Plan tab lets you upgrade or downgrade your site to a different plan. So if you want to try out site sections, AI answers or any other features that aren’t included in your plan, this is the place to go.
Change audience settings and publish
Once you’ve created your site and added some content, you can go right ahead an publish.
By default, your site will be set to publish publicly — you can change this in the Audience section of your site’s Settings page.
Once you’ve set your chosen audience — or if you’re happy to publish publicly — all you have to do is hit Publish and your site will be live! Of course, you can continue editing your site’s customization and settings when it’s live, as well as editing the content and linking more spaces if you wish.
Note: Some of these publishing options are only available on Premium or Ultimate sites, so if you want some of the more advanced options you may need to upgrade.
Public
As you might imagine, this publishes your site publicly, so it will be visible to everyone on the web.
By default, your public site will also be indexed by search engines. If you don’t want your site to be indexed or appear in search results — such as if you’re publishing beta documentation or a version update — you can disable that in the menu.
Share links
With share links, you can create unique, private links to your docs to send to specific user groups. You can revoke a link at any time, so if a specific group no longer needs access to your docs it’s easy to remove them. Only people with an active link will be able to access your docs site, which won’t be indexed by search engines.
Visitor authentication
Once set up, visitors to your docs will be prompted to log in using their established credentials. Only people authorized in your backend will be able to access your docs. This is ideal if you want to control exactly who can view your documentation.
Check the built-in site analytics
For now, let’s stick with our built-in tools.
First up you can see Traffic, which shows you how many views your pages have had in the last seven days, four weeks and 12 months. You’ll also see a trend indicator to give you an idea of how that data compares to the previous time period.
In the Insights area you can also see your visitors’ most common search queries, which is great if you’re trying to find and fix gaps in your content.
We can’t wait to see what you create!
That's a quick overview of how to set up, customize and publish your first docs site in GitBook. With so many options available, you’ll be able to make every page you publish feel like your own.
We love seeing your GitBook docs, so feel free to share them with us on X (formly Twitter). And if you have any questions or ideas, you can join our GitBook community, or reach out to our support team — they’d be happy to help!
→ Sign up to GitBook for free
→ Watch our video guides