Gitbook Versioned Documentation: Keep Live Docs Stable While Editing Drafts
Learn how Gitbook’s versioned documentation lets you edit drafts without breaking the live site, with a step‑by‑step example and key trade‑offs.
18 Nov 2025, 18:34 UTC

Problem: Your docs break when you push frequent updates
You spend time polishing a “Getting Started” page, hit publish, and the live site suddenly shows missing images or outdated steps. Visitors complain, support tickets rise, and you scramble to revert. The root cause is that a single documentation version is being edited in place.
Thesis: Gitbook versioned documentation lets you keep the public site stable while you iterate on drafts
With versioning, each draft lives in its own copy. The published version stays untouched until you decide to promote it. This separation eliminates the risk of breaking live pages during rapid changes.
How versioned documentation works
In the Gitbook admin UI you open Settings → Versions. Click Create new version and give it a name such as “2.0”. Gitbook copies the selected pages into the new version, preserving the navigation structure. The navigation menu then shows a dropdown or separate links for each version, so readers can choose which context they view.
Key terms:
- Version – a distinct snapshot of pages, assets, and navigation settings.
- Published version – the version that is currently accessible via the public URL.
- Draft version – any version you edit locally before publishing.
- Navigation link – a menu entry that points to a specific version’s page.
When you create a version, Gitbook does not duplicate the entire site; it only copies the pages you have selected for that version. This keeps the operation fast while still providing isolation.
Practical workflow example
- Open your project, go to Settings → Versions and click Create version. Name it “2.0”.
- The new version appears in the list with a copy of all selected pages. Assets such as images are also duplicated, so you have a full snapshot.
- Select the “Getting Started” page, click Edit, and update the content to reflect new API endpoints and a revised diagram.
- Press Publish for version “2.0”. Gitbook generates a new URL such as https://yourbook.com/2.0/getting-started and adds a link to the navigation menu labeled “2.0 – Getting Started”.
- Meanwhile, version “1.0” continues to serve the original “Getting Started” page at https://yourbook.com/getting-started. No changes are made to that URL.
- Verify the result: visit the new URL, confirm the updated content, then switch back to the original URL and ensure the old content remains unchanged.
Because the URL contains the version identifier, you can bookmark or share a specific version directly. This is useful for referencing a stable release in tutorials or support tickets. The version label also appears in the page header, so readers instantly know which context they are viewing.
Trade‑off and limitation
Each version stores its own copy of assets such as images, code blocks, and attachments. Over time this can increase storage usage and require manual cleanup of unused files. If navigation links are not clearly labeled, readers may land on the wrong version and experience inconsistent information. To mitigate this, adopt a clear naming convention (e.g., “major.minor”) and use explicit version labels in the navigation.
Storage impact can be quantified: a typical high‑resolution screenshot of 500 KB duplicated across three versions consumes 1.5 MB. If you have dozens of versions, the cumulative cost may exceed the plan’s allowance, prompting the need for periodic cleanup.
Actionable closing
To start using versioned documentation:
- Confirm the feature is available on your plan by opening Settings → Versions. If the section is missing, your current subscription does not include versioning.
- Create a test version, edit a page, publish, and check that the new URL appears in the navigation while the original version’s content stays the same.
- Regularly review the Versions list to delete obsolete versions and free up storage.
- Document a naming convention for versions (e.g., “major.minor”) so readers can quickly identify the most recent stable release.
- When promoting a draft, double‑check that all internal links point to the correct version URL to avoid broken navigation.
By following these steps you can edit documentation freely, keep the public site reliable, and avoid the frustration of broken links caused by in‑place edits.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.