GitBook integrates perfectly with GitHub as a hosting solution for the source of your book. When configured correctly, this has several effects:
Integrating with GitHub is done in 3 steps:
To integrate your book with GitHub, you need to authorize GitBook to access your GitHub account to some extent. From your account's settings, connect your GitHub account and choose what you will allow:
From your book's GitHub settings page, you can easily specify to which GitHub repository your book will be linked.
In the input form, type in the name of your book's repository in the following format:
Note that you shouldn't enter neither the full GitHub address, nor the
Finally, click on the Save button.
The final step is to configure a webhook on your GitHub repository that will let GitBook know when your repository is updated.
After completing step 2., a new Integration panel will appear on your book's GitHub settings page. To add the webhook, you can either:
Either way, clicking on the Check webhooks button will lead you to your GitHub repo settings page where you should see the newly created webhook.
The next push event to your GitHub repository will trigger a new update of your book on GitBook.