# Source: https://gitbook.com/docs/developers/gitbook-api/quickstart.md

# Source: https://gitbook.com/docs/developers/integrations/quickstart.md

# Source: https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/quickstart.md

# Source: https://gitbook.com/docs/documentation/zh/getting-started/quickstart.md

# Source: https://gitbook.com/docs/documentation/fr/getting-started/quickstart.md

# Source: https://gitbook.com/docs/getting-started/quickstart.md

# Quickstart

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.

{% stepper %}
{% step %}

#### Getting started

You’ll need to [create an account](https://app.gitbook.com/join) before you can get started with your first documentation site.

After creating your account, you’ll automatically see a new docs site that’s ready for you to edit and customize. Choose how you want to add content to your site before you publish from the on-screen options.

{% hint style="success" %}
Your content isn’t published yet — so you can edit, customize and preview your docs site before making it live. Hit **Publish** to make it live immediately.

<i class="fa-arrow-down">:arrow-down:</i> [Jump to the ‘Publishing’ section on this page](#publish-your-documentation)
{% endhint %}
{% endstep %}

{% step %}

#### Edit your 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](https://gitbook.com/docs/getting-started/concepts).

<details>

<summary>Use the visual editor</summary>

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 will look as you work.

This visual editing workflow is ideal for users who don’t want to work in a code editor, or who have experience working with tools like Notion or Google Docs.

**1. Edit your docs in a change request**

First, find your docs site in the sidebar and click the item below it. This takes you to the space where your content lives.

Click **Edit** in the top-right. This opens a change request where you can edit the content of the space.

Click **Add new…** in the table of contents on the left-hand side to add a page, and give it a title.

<div data-with-frame="true"><figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F4NufXeLUPbyqEUbv1xo5%2F13_11_25_change_request.png?alt=media&#x26;token=175ca825-c600-48fc-a23b-b406b7a7c921" alt="A screenshot of the Editor in the GitBook app, zoomed in to show the menu that lets you add new pages, groups, links and more to a GitBook space."><figcaption></figcaption></figure></div>

**2. 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 a live preview of what your docs site will look like with all the changes in your change request, on both desktop and mobile.

<div data-with-frame="true"><figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FAuVKKPX3JX3tNjpSGXvf%2F13_11_25_site_preview%402x.png?alt=media&#x26;token=b06ee5b4-2f44-421c-bce7-f084696f309f" alt="A screenshot of the GitBook app with the Preview tab open, showing a docs site being previewed on a mobile-size display"><figcaption></figcaption></figure></div>

**3. Merge your changes**

Once you’re happy with your changes, click the **Merge** button in the top-right corner.

This will update 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 will be updated immediately.

</details>

<details>

<summary>Code-based editing</summary>

Sync your documentation with a GitHub or GitLab repository to enable code-based editing. Once synced, you can edit your docs in your existing developer environment.

This workflow is ideal for technical users who don’t want to switch tools and prefer to manage their documentation alongside other code.

**1. Set up Git Sync**

If you haven’t already set up Git Sync when creating your site, first find your docs site in the sidebar and click the name of the content below it. This takes you to the space where your content lives.

Click the **Set up Git Sync** button in the top-right and follow the instructions to sync your space to your chosen Git repository.

Head to the [Git Sync pages](https://gitbook.com/docs/getting-started/git-sync) to find out more.

**2. Edit your docs from your developer environment**

Once you’ve synced your space to your Git repository, you can update the content of your docs from that repository in your development environment.

Open the repository, create a pull request and make the changes you want.

{% hint style="info" %}

### Markdown editing

GitBook supports [Markdown editing](https://gitbook.com/docs/creating-content/formatting/markdown), so you can create and format content using common syntax.

Every standard block in GitBook can be written and formatted using Markdown syntax.
{% endhint %}

**3. Preview your changes**

You can [preview your changes](https://gitbook.com/docs/getting-started/git-sync/github-pull-request-preview) on your published docs site from the pull request in GitHub or GitLab.

In your pull request, you’ll see a status with a unique preview URL. Click **Details** on that status to open the preview URL and see how your site will look when the pull request is merged and your site is updated.

**4. Merge your changes**

You’re good to go. Merge your pull request and your content will be updated both in the GitBook app and on your docs site, if it’s live.

In the GitBook app, every commit and your merged pull request will be synced to your space as updates in the version history.

<div data-with-frame="true"><figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F1AdVpymURZeqOOsMOzlH%2F13_10_25_github_history%402x.png?alt=media&#x26;token=a7761394-10c8-4286-8b69-bf033d062635" alt="A screenshot of the GitBook app showing the version history side panel open. In the side panel the highlighted entry shows a pull request from GitHub that was merged as part of the history, with a link to view the pull request on GitHub."><figcaption></figcaption></figure></div>

</details>
{% endstep %}

{% step %}

#### Customize your docs

<details>

<summary>Organize your site navigation</summary>

You can add more content to your site — such as an API reference, a help center or a changelog — at any time. When you add content, you can organize your site’s navigation bar to help users easily find what they’re looking for.

Head to [the Concepts page](https://gitbook.com/docs/getting-started/concepts) to find out more about site navigation.

Head to [the Site structure page](https://gitbook.com/docs/publishing-documentation/site-structure) to find out more about adding content to your site.

<div data-with-frame="true"><figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FsoxIXhHjWQo4xRksb0ui%2F13_11_25_site_navigation%402x.png?alt=media&#x26;token=5d0c93c2-4d57-4c7c-bd52-ca8381e77fc0" alt="A screenshot of a published docs site hosted on GitBook. The top of the site has a navigation bar, and the cursor is hovering over a drop-down in that bar, with a submenu open below it showing links to more pages"><figcaption></figcaption></figure></div>

</details>

<details>

<summary>Customize the look and feel of your docs site</summary>

Your docs site will look great out of the box, but you can also customize many settings that change the look and feel of your published site.

You can customize your site’s [logo, colors and font](https://gitbook.com/docs/publishing-documentation/customization/icons-colors-and-themes), add to your site navigation bar using [site sections](https://gitbook.com/docs/publishing-documentation/site-structure/site-sections) and [variants](https://gitbook.com/docs/publishing-documentation/site-structure/variants), update your [site’s visibility](https://gitbook.com/docs/publishing-documentation/site-settings#audience) settings and much more.

<div data-with-frame="true"><figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FPHDUX2Kbmd9wwUBpJqst%2Fcustomization-demo.png?alt=media&#x26;token=7586ba34-9cd2-47ee-9169-81b73dd40923" alt="An illustration showing five docs sites hosted in GitBook, each with distinct visual customizations"><figcaption></figcaption></figure></div>

</details>
{% endstep %}

{% step %}

#### Publish your documentation

<details>

<summary>Publish your docs</summary>

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

Open your site’s dashboard by clicking the site’s name in the sidebar. Then click **Publish** in the top-right corner to make it live.

Once your site is live, the dashboard will update with a link to the live site.

<div data-with-frame="true"><figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FLRLvuidU4tZph7NJZiaX%2F13_11_25_site_dashboard%402x.png?alt=media&#x26;token=c6d67f60-04ed-4814-a197-f6f620fddeda" alt="A screenshot of the GitBook app showing a dashboard for a docs site. The dashboard shows the public URL, site status, site content, some top-level analytics for the site, and other options in tabs along the top of the screen."><figcaption></figcaption></figure></div>

{% hint style="success" %}
Want to explore publishing in more detail? Check out [our complete guide to creating and publishing content in GitBook](https://app.gitbook.com/s/LBGJKQic7BQYBXmVSjy0/editing-and-publishing-documentation/complete-guide-to-publishing-docs-gitbook).
{% endhint %}

</details>

<details>

<summary>Add a custom domain</summary>

By default, you site will be published with a unique URL with this format:

```
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](https://gitbook.com/docs/publishing-documentation/custom-domain) or [a custom subdirectory](https://gitbook.com/docs/publishing-documentation/setting-a-custom-subdirectory).

To do this, open your site dashboard by clicking the site’s name in the sidebar, then open the **Settings** tab and choose **Domain and URL**.

<figure><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FpgIgLwPDjxeFvDPV5s1A%2F13_11_25_custom_domain%402x.png?alt=media&#x26;token=0b4bc691-21d5-48f8-a068-411dfe0a19c8" alt="A screenshot of the GitBook app showing the menu that guides you through the process of setting up a custom domain for your docs site."><figcaption></figcaption></figure>

Use the buttons on the screen to choose the option you want, and follow the instructions to configure the DNS settings with your domain provider.

{% hint style="info" %}
It can take up to 48 hours for your DNS changes to take effect — although they typically propagate much faster.
{% endhint %}

</details>
{% endstep %}
{% endstepper %}

### Next steps

<table data-view="cards"><thead><tr><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-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>Invite your team to collaborate</strong></td><td>Add team members to your organization and set permissions</td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fx86ICzAJYkRIHo8CkBfa%2FInvite%20your%20team%20to%20collaborate.png?alt=media&#x26;token=427f64f0-9175-4787-a952-827bcdbec2ab">25_12_10_invite_your_team_to_collaborate_1.png</a></td><td><a href="../account-management/member-management/invite-members-to-your-organization">invite-members-to-your-organization</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fanu5lcBOfoYfNQPIUA65%2FInvite%20your%20team%20to%20collaborate.png?alt=media&#x26;token=1759c40c-08a4-42e4-a345-2b91dfad1f62">25_12_10_invite_your_team_to_collaborate.png</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fanu5lcBOfoYfNQPIUA65%2FInvite%20your%20team%20to%20collaborate.png?alt=media&#x26;token=1759c40c-08a4-42e4-a345-2b91dfad1f62">25_12_10_invite_your_team_to_collaborate.png</a></td><td></td><td></td><td></td></tr><tr><td><strong>Change site visibility</strong></td><td>Control who can see your content with share links and authenticated access</td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FA33LxfEQT05aX7uUdLpb%2FChange%20site%20visibility.png?alt=media&#x26;token=896f9961-f57b-4a5b-8903-792303827565">25_12_10_change_site_visibility_1.png</a></td><td><a href="../../publishing-documentation/publish-a-docs-site#publish-a-docs-site">#publish-a-docs-site</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FDpa2c6rD9NiYgtdlIvF0%2FChange%20site%20visibility.png?alt=media&#x26;token=f2c838ef-2737-4b8a-ad8b-69453bf28f53">25_12_10_change_site_visibility.png</a></td><td></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FDpa2c6rD9NiYgtdlIvF0%2FChange%20site%20visibility.png?alt=media&#x26;token=f2c838ef-2737-4b8a-ad8b-69453bf28f53">25_12_10_change_site_visibility.png</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FDpa2c6rD9NiYgtdlIvF0%2FChange%20site%20visibility.png?alt=media&#x26;token=f2c838ef-2737-4b8a-ad8b-69453bf28f53">25_12_10_change_site_visibility.png</a></td><td></td></tr><tr><td><strong>Add auto-translations</strong></td><td>Create one-click translations that update automatically</td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FC5waVC2qQyf9I6hE7uQW%2FAdd%20auto-translations.png?alt=media&#x26;token=888e2471-7041-40f0-8b22-83c442bd0808">25_12_10_add_auto_translations_1.png</a></td><td><a href="../publishing-documentation/site-settings">site-settings</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Flewca2EA3o9UnsB9j0vz%2FAdd%20auto-translations.png?alt=media&#x26;token=f3a42248-f303-44ce-b577-375f8579c34c">25_12_10_add_auto_translations.png</a></td><td></td><td></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Flewca2EA3o9UnsB9j0vz%2FAdd%20auto-translations.png?alt=media&#x26;token=f3a42248-f303-44ce-b577-375f8579c34c">25_12_10_add_auto_translations.png</a></td><td></td></tr><tr><td><strong>Install integrations</strong></td><td>Integrate with your stack and extend functionality with powerful integrations</td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FitoGCSdPpGwPPCGwb29a%2FInstall%20integrations.png?alt=media&#x26;token=6243ef56-d3f7-464f-8d8b-7ffee19f02a3">25_12_10_install_integrations_1.png</a></td><td><a href="../integrations">integrations</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F5bKkozsx0KN2mbeWaWMv%2FInstall%20integrations.png?alt=media&#x26;token=8f25beb6-8844-486b-8afb-8ae50e9b7554">25_12_10_install_integrations.png</a></td><td></td><td></td><td></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F5bKkozsx0KN2mbeWaWMv%2FInstall%20integrations.png?alt=media&#x26;token=8f25beb6-8844-486b-8afb-8ae50e9b7554">25_12_10_install_integrations.png</a></td></tr><tr><td><strong>Add an API reference</strong></td><td>Create auto-updating, interactive API reference docs from an API spec</td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F2mbcS7cM3bp2Gi5XwWmf%2FAdd%20an%20API%20reference.png?alt=media&#x26;token=fed30694-81df-4f0f-a061-9c869879fda1">25_12_10_add_an_api_reference_1.png</a></td><td><a href="../api-references">api-references</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F5q9ieVfqWc6JewePmrTd%2FAdd%20an%20API%20reference.png?alt=media&#x26;token=43439c73-f6bd-43f4-b7fa-6c9c03b3c969">25_12_10_add_an_api_reference.png</a></td><td></td><td></td><td></td><td></td></tr><tr><td><strong>Track docs analytics</strong></td><td>Use the built-in insights to measure success and understand user behavior</td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FSmrnppLSbEjgJXeblvHp%2FTrack%20docs%20analytics.png?alt=media&#x26;token=09f31b10-1c10-48e1-a21c-bcc3d356b70d">25_12_10_track_docs_analytics_1.png</a></td><td><a href="../publishing-documentation/insights">insights</a></td><td><a href="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FbzbqcT1c5ndzkO12Eh6d%2FTrack%20docs%20analytics.png?alt=media&#x26;token=23b06593-393f-4382-a97f-697009646263">25_12_10_track_docs_analytics.png</a></td><td></td><td></td><td></td><td></td></tr></tbody></table>

### FAQs

<details>

<summary>What is GitBook?</summary>

GitBook is a collaborative, AI-native documentation platform where teams can create, review, and publish branded docs as websites. Docs sites hosted on GitBook can offer a built-in AI Assistant and connect to other AI tools via MCP.

You can edit content using the advanced visual editor using Markdown, sync your docs with a Git repository for a docs as code workflow — or use a combination of the two. However your team chooses to use GitBook, you’ll use a Git-like branching workflow with a full version history, which protects your primary content while encouraging collaboration and feedback across your entire team.

</details>

<details>

<summary>How do you publish documentation with GitBook?</summary>

Publishing in GitBook is a simple process once your content is ready to go live:

1. Create a new docs site (or open an existing one) and choose the content you want to publish.
2. Choose your site audience. You can publish to everyone with the **public** setting, or limit the audience with **share links** or **authenticated access**.
3. (Optional) Customize the branding, domain, and theme using the built-in options.
4. Click **Publish**. Congrats — your docs are live! You can add more spaces later as site sections or variants.

To find out more, check out [our Quickstart guide](#getting-started) above, or read [the complete guide to creating and publishing documentation in GitBook](https://app.gitbook.com/s/LBGJKQic7BQYBXmVSjy0/editing-and-publishing-documentation/complete-guide-to-publishing-docs-gitbook).

</details>

<details>

<summary>Is GitBook open source?</summary>

GitBook itself is not open source. However, GitBook’s published docs platform — which is used to host and display documentation on a docs site — is open source. You can [visit the repository](https://github.com/GitbookIO/gitbook) to see the code and submit changes for review.

While GitBook itself isn’t open source, **open source projects can publish documentation on GitBook for free**. Teams can sign up for [the Community plan](https://gitbook.com/docs/account-management/plans/community) and publish content using [a Sponsored site plan](https://gitbook.com/docs/account-management/plans/community/sponsored-site-plan), both of which are free to qualifying teams.

</details>

<details>

<summary>What’s the difference between a site and a space in GitBook?</summary>

In GitBook, a **docs site** is your overall documentation hub, hosting all content accessible to your audience and featuring customizable options like theme and domain.

Each site contains one or more **spaces**, which serve as individual sections within the site, organizing related content for better modularity and ease of management. Spaces let you focus your collaboration on specific topics, and you can combine multiple spaces on a single site to build structure or enable options like translations (for localized documentation) or multi-product support.

</details>

<details>

<summary>What are the differences between GitBook’s visual editor and Git Sync?</summary>

GitBook offers two main methods for editing documentation — the visual editor and Git Sync. The **visual editor** is an advanced, block-based editor that allows you to create and modify content directly within GitBook using a traditional user interface that includes Markdown support. It's ideal for those who prefer a more intuitive, hands-on editing experience without directly dealing with code.

**Git Sync** integrates your documentation workflow with a Git repository, enabling a ‘docs as code’ approach. This option is ideal for developers and teams who prefer managing documentation alongside their codebase, using familiar Git commands and workflows.

Your team can choose one of these workflows, or use a combination of them both. And whichever method they prefer, editing follows a consistent, Git-like branching workflow with a full version history and content review process. This doesn’t just promote collaboration and quality across your docs — it also safeguards primary content from accidental edits.

</details>