Managing Versions
With DeveloperHub, you have the ability to version your documentation effectively. The default version is designated as v1.0, but you can tailor the naming of your versions to suit your needs. While semantic versioning is not mandatory, you are free to incorporate terms like "beta," "alpha," and "latest" alongside traditional version numbers. This flexibility allows you to create a versioning system that best reflects the progress and state of your documentation.
Versioning is very powerful. When pages are linked inside a version, and that version is cloned, all the page links are updated accordingly to the match the new version.
Creating Versions (Cloning)
New versions are always cloned from other versions. To clone a version:
- Click on Version
in the sidebar. - Select the version to clone from.
- Click on "Clone from current version".
Nice, you cloned a version. That means that every documentation and page under that version has been copied to the new version.
Publishing Versions
Versions by default are not published. Once you are ready to publish (or unpublish):
- Click on Version
in the sidebar. - Below the version title at the top, click on the publishing state and modify it as needed.
When a version is published, only the published documentation and API references can be seen by readers. If a version is unpublished, it and all its contents will not be visible to readers, but the publish state of its documentation and API reference remains unchanged.
When a version is published, it will appear with a green dot
Deleting Versions
To delete a version:
- Click on Version
in the sidebar. - Select the version to delete.
- Click on the red bin
next to the Version title at the top. - Confirm your deletion.
Once a version is deleted, it cannot be retrieved back.
Ordering Versions
To change a version order in the picker:
- Click on Version
in the sidebar. - Drag the version to be ordered from the handle
- Drop the version in the desired place.
If the version is ordered first and has been published, it will automatically become the default version that loads for your readers. A default badge will be displayed to indicate that this version is set as the default.
The default version does not display its slug in the live page links. For instance, if version 1.0 is set as the default for this documentation project, the live page links will appear without including the version number in the URL.
Accessing [https://docs.developerhub.io/support-center/managing-versions](https://docs.developerhub.io/support-center/managing-versions)
will automatically redirect you to the default version of the documentation, which is version 1.0. Similarly, using [https://docs.developerhub.io/v1.0/support-center/managing-versions](https://docs.developerhub.io/v1.0/support-center/managing-versions)
will produce the same outcome.
Moving Readers to New Version
If your readers have bookmarked pages from older versions, or if they are unaware that your documentation is versioned, it's beneficial to notify them with a banner at the top of the page indicating that there is a newer version available. You can achieve this by using an advanced setting and configuring warnings.oldVersion
to true
.

Banner suggesting to the reader that there's a newer version
Locking Versions
Versions can be locked to prevent any further edits to their documentation and API references once they are finalized. When a version is locked, the documentation and API references cannot be modified or updated, ensuring the integrity and consistency of the information presented.
- Created.
- Edited.
- Removed.
- Published.
This also applies to changes made using the auto$.
To lock/unlock a version:
- Click on Version
in the sidebar. - Select the version to be locked/unlocked.
- Open the version settings
. - Check or uncheck the setting Locked.
A lock icon will appear next to the locked version, and the buttons for saving drafts or publishing will be replaced by a button labeled "Locked."