Gitbook Spaces
The ability to create and manage spaces and collections within GitBook is essential for organizing and maintaining documentation. This feature allows users to structure their content efficiently, ensuring that related information is grouped logically. For users who need to manage extensive documentation, such as developers, technical writers, and project managers, this feature is crucial. It ensures that their work is well-organized, easily accessible, and synchronized with source code repositories like GitHub, enhancing workflow efficiency.
Step-by-Step Usage Instructions
Log in to your GitBook account: Ensure you are logged into your GitBook account to access your documentation projects.
View Existing Collections and Spaces: In the left-hand menu, you will see all the existing collections and spaces within GitBook. This step allows you to understand the current structure and decide where new spaces or collections should be added.
Add a New Space or Collection: Click on the
Add
button next to "Spaces" for expanding your documentation by either creating new content areas (spaces) or grouping related spaces (collections).Create a Space: Provide a
Title
for your new space. Start writing content by adding pages if you plan to create documentation directly within GitBook.Configure GitHub Sync: Click on the
Configure
button at the top right. Synchronizing with GitHub ensures that your documentation is always up-to-date with the latest changes in your codebase.Enable GitHub Sync: Click on
GitHub Sync
orGitlab Sync
and confirm the action. Enabling synchronization ensures that your GitBook content is in sync with your GitHub or Gitlab repository.Authenticate GitHub Sync: Select the space and click on
Connect with GitHub
to authenticate. This step links your GitHub account with GitBook, allowing for seamless integration.Specify Sync Path: Add the correct path by selecting the
account
,repository
,branch
, anddirectory
(if any). Use the format./folder1/folder2
for directories. Ensuring the correct path is crucial for accurate synchronization of your content.Commit Message Template (Optional): Select a template for commit messages or pull request reviews if required. Using a consistent template helps maintain clarity and uniformity in your version history.
Select Sync Direction: Choose whether you want to sync from
GitHub to Gitbook
(if you write content on GitHub) or fromGitbook to GitHub
(if you write content on GitBook). This determines the direction of the synchronization process based on your workflow.Initiate Synchronization: Click on
Sync
and wait for the synchronization to complete. This final step ensures that your documentation is synchronized and up-to-date.Verify Synced Pages: The pages will appear as per the summary if you are syncing from
GitHub to GitBook
. Verifying the synchronized pages ensures that the content is accurately updated and organized.Share and Publish the Space: Once the content is available on GitBook, click on the
Share
button. Sharing allows others to access your documentation, enhancing collaboration and information dissemination.Navigate to Publish to the Web: Navigate to the
Publish to the Web
button and turn the toggle on forPublish Space to the Web
. Publishing to the web makes your documentation publicly accessible.Customize and Save the URL: A custom URL will appear, which you can change as per your preference and save the URL link. A customized URL ensures that your documentation is easily accessible and memorable for users.
Access the Published Pages: The GitHub pages will now appear on the web with the custom URL you set. This final step ensures that your documentation is publicly available and can be accessed by anyone with the URL.
By following these steps, users can efficiently create, manage, and publish their documentation within GitBook, ensuring a streamlined and organized workflow.
Last updated