Show alternative versions in the CookBook
Compare changes
Files
3+ 16
− 0
Add a version selection menu in the CookBook. See what it looks like here: https://vpoughon.github.io/otb_cookbook_examples/.
OTB release are not very frequent, so it's useful to be able to check the latest version of the documentation (develop), or a past version.
This implementation fetches the develop version of the html div
for all versions. This allows any version to show links to versions released later without rebuilding.
The file Documentation/Cookbook/_static/html/versions.html
contains the list of links and needs to be kept up to date manually.
Once this is merged I will add this step to the how to release wiki:
#### Update version list in CookBook
In the develop branch, update the file `Documentation/Cookbook/_static/html/versions.html` with the new version and link.
In the future it would be nice to also have a warning displayed at the top when viewing an older version of the doc, like for example the sphinxcontrib-versioning doc does that.
The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.
Check before merging: