The custom domain will be used as-is for the default space in the collection. Other spaces in the collection will have a URL in this format:
You’ll find the options for setting a custom domain for a collection in the collection’s Share modal.
Click on the name of the collection in the sidebar, and then click on the Share in the top-right corner.
In order to set a custom domain for a collection, your collection needs to be published either publicly, unlisted, with share links, or using visitor authentication.
After publishing, click Connect a domain under the Customize URL section. Then, enter the custom domain you’d like to set, and then click Next: Configure DNS.
We’ll then provide the name and value to use in the next step when you create your CNAME DNS record. You can copy the name or value to your clipboard by clicking on the icon on the right-hand side of each field.
The value for the CNAME record will be in the format
[something]-hosting.gitbook.io, where that
[something] will be unique to you.
Now, you’re ready to move onto the next step: configuring DNS.