For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Get up and running in GitBook and publish your first docs site in minutes

This quickstart guide explains how to get set up in GitBook and publish your first docs site in minutes.

At the end of this guide, you’ll have a live documentation site, ready to expand and customize.

1

Create your account

Create an account to get started with your first documentation site.

2

Create your first site

  1. From your organization Home, click the + next to Sites in the sidebar.

  2. Give your site a name your visitors will recognize.

  3. Click Create.

3

Choose how you want to start

GitBook welcomes you to your new site and asks how you'd like to begin.

Starting point
Best for

Docs template

Starting from a ready-made documentation layout with placeholder sections — the fastest way to see a full site working.

Import

Bringing in existing content from online docs, Markdown, or HTML.

OpenAPI

Generating interactive API reference docs from an OpenAPI spec.

Blank

Starting from an empty section and building from scratch.

Sync with Git

Keeping your docs in sync with a GitHub or GitLab repository.

Or, you can pick from your organization's existing content if you already have some work in GitBook.

This guide follows the template path:

  1. Click Docs template and review the preview.

  2. Click Use Docs Template to apply it.

4

Explore your new site

Your site opens unpublished, so you can edit, customize, and preview everything before it goes live. The sidebar shows:

Sidebar area
What you'll find

Site header

Your site name, its publish status, and the Preview and Publish buttons.

General

Overview, Change requests, Site structure, and Settings.

Tools

Styleguide, Customize, Analyze, and Extend.

Content

These are your site's sections - for the Docs template: Home, Documentation, API Reference, Changelog, and Help Center. Use the icons on the Content header to find, rename, and add sections.

5

Edit your content

The Docs template starts you with placeholder sections in the Content part of the sidebar. Click any section to open it and see its placeholder content.

There are two ways to edit and update your content in GitBook — in our visual editor, or following a docs-as-code workflow. You can choose one, or use a combination of both. Whichever workflow you prefer, you'll edit your content using a branch-based editing flow. Find out more on the Concepts page.

GitBook's what-you-see-is-what-you-get (WYSIWYG) editor lets you edit content visually, drag content blocks to reorganize them, and see how your content looks as you work. It's ideal if you don't want to work in a code editor, or you're used to tools like Notion or Google Docs.

Edit your docs in a change request

  1. In the Content section of the sidebar, click a section — such as Documentation — to open it.

  2. Click Edit in the top-right corner. This opens a change request where you can change the content of the section.

  3. Click Add new… > Page in the table of contents on the left-hand side.

  4. Give your new page a title.

Preview your changes

Along the top of the web app you'll see tabs for Editor, Changes, and Preview. These switch between different views for your content. Click Preview to see how your docs site looks with all the changes in your change request, on both desktop and mobile.

Merge your changes

Once you're happy with your changes, click the Merge button in the top-right corner. This updates the primary version of your content with all the edits from the change request. If the content is part of a live docs site, the site updates immediately.

6

Customize your docs

Organize your site navigation

Add more content to your site — an API reference, a help center, a changelog — at any time, and organize your site's navigation bar so visitors find what they're looking for. Head to Site structure to learn about sections, groups, and variants.

Customize the look and feel

Your site looks great out of the box — and under Customize, you can set your own logo, colors, and font, adjust the layout, and update your site's visibility.

7

Publish your documentation

You can publish your site with a click at any time.

  1. Open your site from your organization Home.

  2. Click Publish in the site header.

Once your site is live, the Overview screen updates with a link to the live site.

Add a custom domain

By default, your site is published with a unique URL in this format:

Your site’s default URL
https://[organization-name].gitbook.io/[site-title]

While this may be suitable for some teams, many choose to change their URL to a custom domain or a custom subdirectory.

  1. Expand Settings in your site's sidebar.

  2. Click Domain and URL.

  3. Choose the option you want.

  4. Follow the instructions to configure the DNS settings with your domain provider.

It can take up to 48 hours for your DNS changes to take effect — although they typically propagate much faster.

Next steps

Last updated

Was this helpful?