Guidebook Cloud supports branch-based documentation, allowing you to preview changes before merging and maintain documentation for different versions.
Each branch has its own URL:
https://guidebook.dev/{org-slug}/{repo-slug}@{branch-name}/
| Branch | URL |
|---|---|
main | https://guidebook.dev/acme/docs/ |
develop | https://guidebook.dev/acme/docs@develop/ |
feature/new-api | https://guidebook.dev/acme/docs@feature/new-api/ |
v2.0 | https://guidebook.dev/acme/docs@v2.0/ |
The default branch is shown when accessing the repository URL without a branch specifier.
The default branch is initially set to the GitHub repository's default branch (usually main or master).
Branch previews allow you to view documentation changes before merging.
When auto-deploy is configured:
Configure which branches trigger builds:
main, release/*, docs-*To see all branches for a repository:
When a branch is deleted from GitHub:
If a branch was not automatically removed:
Each branch shows its build status:
| Status | Description |
|---|---|
| Building | Build is in progress |
| Success | Build completed successfully |
| Failed | Build failed (check build logs) |
| Timeout | Build exceeded the timeout limit |
To view build logs:
Maintain documentation for different product versions:
v1.0 -> https://guidebook.dev/acme/docs@v1.0/
v2.0 -> https://guidebook.dev/acme/docs@v2.0/
main -> https://guidebook.dev/acme/docs/ (latest)
Preview documentation changes in pull requests:
Use branches as staging environments:
develop -> https://guidebook.dev/acme/docs@develop/ (staging)
main -> https://guidebook.dev/acme/docs/ (production)