Publishing a new version
Requirement
The repository was already correctly setup following the setup guide found in this documentation.
This document contains the step-by-step instruction for publishing a new documentation version.
1. Create the new documentation release branch
After releasing a new version of the software we expect to release the corresponding documentation. Similarly to the code branches we'll need to create a new branch for the new software release named docs-release-[major].[minor]
where the [major]
and [minor]
correspond to the software just released.
First, checkout the documentation development branch:
Then create the new release branch:
This will kick-off the Github automation that will build and deploy the documentation on the gh-pages
branch.
You should be now able to select the new version from the dropdown menu at the top of the published page.
2. Update the default version to serve
For setting this release as the one to be served by default you'll simply need to (after pull
-ing the latest changes) run the following mike
command:
Troubleshooting
No write permissions on repository
If you don’t have write permissions and need to open a PR for updating the version alias you can do so by leveraging the --branch
option.
Create a branch of gh-pages
(let’s call it update-gh-pages
for this example) and issue the following:
Now you should be able to open a PR with target branch gh-pages
and update the aliases and defaults.