Here at GitBook, the change request workflow is at the core of the collaborative documentation process.
Change requests are a great way to collaborate on edits with your team in a branch, before merging those changes with your published content. It doesn’t just give you peace of mind when editing docs that are already published — it brings more people into that process, and helps you get feedback in context.
Ultimately, we believe that developers’ asynchronous workflows are the future for knowledge sharing. And we want to make it as simple as possible for everyone in your team to collaborate and create documentation using GitBook. That’s why you can work together in GitBook just like you do in GitHub or GitLab.
Here’s how to build a collaborative docs workflow with change requests at the center.
Tips for working with change requests
Use diff view to see what’s changed
Just like in GitHub and GitLab, diff view shows you everything that’s been added, deleted or edited in a change request. When you enable the View changes toggle at the top of a change request, you’ll notice that markers appear next to pages and lines will appear next to blocks on your page to show everything that’s different.
Diff view is perfect when you’re reviewing a change request, as it helps you see precisely what’s been edited.In the View changes menu, you can switch between showing every edited page, or just the pages with edits in this specific change request. The latter is ideal when you’re reviewing a change request and just want to jump right to what’s new.
The only way to edit content that’s published as part of a docs site is through a change request. But how do you know what the edits you’re making will look when you update the published docs?
When you set up Git Sync, you can make changes to your docs in either location — either by creating a change request in GitBook or opening a pull request in GitHub. This will create a new branch in each location, so your developers can make edits in their IDE while technical writers work in the GitBook editor. And everything stays completely in sync.
It’s a powerful collaborative tool, so we definitely recommend setting it up to encourage more people to contribute to your docs.
You can view and change space-level permissions from the Share menu. Here you can see everyone with access and change their permissions, or invite more users.
So if you want specific people to review every change request in a space before it’s merged into the primary version of your documentation, you can set the space permissions so they are the only users who can review and merge. Or you can invite specific users as commenters, so they can only leave feedback on the changes without being able to edit the page directly.
Collaboration is a key part of creating great product documentation. Give change requests a try and see how they can improve your docs workflow.