Enabling GitLab Sync
Sync your GitLab repo with GitBook
This guide will take you through setting up your GitBook site with a repo on GitLab.

Set the project directory
If your documentation lives in a subdirectory, enter it under Project directory. GitBook stores your site’s docs.yaml file in this directory. Use this configuration if your docs live within a monorepo.
Exclude a space from site-wide Git Sync
In the site’s Git Sync content mapping, click the remove icon next to the space you want to exclude. You can then configure Git Sync from that space.
If the site already has Git Sync, GitBook asks you to choose a scope:
Select the site’s repository and branch to add the space to site-wide Git Sync.
Select an independent repository and branch to configure Space Git Sync.
If the site doesn’t use Git Sync, GitBook configures Git Sync independently for the space.
To configure Git Sync for a single space, in the space you want to sync, click Set up next to Git Sync in the space header. From the provider list, click GitLab Sync, and click Configure.
Last updated
Was this helpful?