History¶
0.6.0 (2026-06-30)¶
Updated pyparsing API to use non-deprecated function names (
DelimitedList,one_of,set_parse_action,parse_string,as_list)Removed jQuery dependency from the versions-menu JavaScript (#33, #25); the
sphinxcontrib.jqueryworkaround is no longer neededThe versions menu now works on any web host, not just Github Pages (#25): the script auto-discovers
versions.jsonby walking up the URL path. Thejson_fileandcurrent_foldertemplate variables are removed;github_project_urlauto-detection fromgithub.ioURLs is preserved as a runtime fallback but can be overridden viadocs_versions_menu_confDropped support for Python 3.9 (EOL)
Added support for Python 3.13
Dropped support for Sphinx < 7.2
Dropped support for Jinja2 < 3.0
Dropped support for packaging < 17.0
Dropped support for pyparsing < 3.1 (tightened from < 3.0)
Migration notes
If you previously added
sphinxcontrib.jquerytoextensionsas a workaround for the missing jQuery in Sphinx >= 6.0, you may now remove it.If you have a custom
docs-versions-menu.js_ttemplate that uses thejson_fileorcurrent_foldertemplate variables, those variables no longer exist and must be removed or replaced with the new runtime auto-discovery approach.To show a Github link in the versions menu on a non-Github Pages host, set
github_project_urlexplicitly indocs_versions_menu_conf.Existing deployed folders (e.g., on a
gh-pagesbranch) may benefit from manually updating thedocs-versions-menu.jsscript, as described in “Interactive maintenance” in the deployment documentation. Without this, only newly built folders benefit from the changes in #25.
0.5.2 (2023-04-19)¶
0.5.1 (2023-01-25)¶
0.5.0 (2022-11-17)¶
Renamed project to
docs-versions-menu(#13)Changed: Removed support for a config file (#9)
Dropped support for Python 3.5 and Python 3.6
Added support for Python 3.10 and 3.11
Improvements to the workflow and documentation.
Update of conda-feedstock
0.4.1 (2021-03-18)¶
Note: this release was under the project name doctr-versions-menu.
Fixed: The
doctr-versions-menuexectuable no longer fails when run outside of a git repository (#15, thanks to Alexander Blech)Fixed: Custom
doctr-versions-menu.js_ttemplate were being ignored (#18)
0.4.0 (2020-12-14)¶
Note: this release was under the project name doctr-versions-menu.
Added: The label in the top left corner of the version menu can now be configured in
conf.py(settingmenu_title).Added:
--default-branchoption,<default-branch>group for folder specifications, anddefault-branchfield inversions.json(#12)Changed: The default
--versionsnow uses<default-branch>, automatically picking up on either “master” or “main” as the default branch (#12)Changed: The default template for
index.htmlnow automatically forwards to the default-branch (based on the--default-branchoption, instead of just “master”), or the first available branch if there is no released version (#12)
This release addresses two major compatibility issues:
Both git and Github have recently switched the name of the default branch from “master” to “main”. This release adds support for new projects using “main” as their default branch.
As of December 2020, Travis CI has stopped their support for open source. Consequently, Doctr can no longer be used to deploy documentation at no cost. This release adds rudimentary support for deploying the documenation with Github Actions instead of Doctr, see Deployment with Github Actions.
0.3.0 (2020-08-03)¶
Note: this release was under the project name doctr-versions-menu.
Added:
--no-downloads-fileoption,downloads_file = Falsein config. (#4, thanks to Tyler Pennebaker)Fixed:
versions.pyongh-pagesbranch was not being committed (#5)Fixed: Compatibility with any
pyparsingversion>= 2.0.2(#8, thanks to Hugo Slepicka)Added: The
doctr-versions-menuexecutable can now be configured through environment variables. This allows to keep configuration on the source branch, in the.travis.ymlfile (#6, thanks to Tyler Pennebaker)The Doctr Versions Menu package can now be installed via conda (thanks to Hugo Slepicka)
0.2.0 (2020-03-14)¶
Note: this release was under the project name doctr-versions-menu.
Added:
--versionsoption for customizing which folders appear in the versions menu and in which order.Added:
--labeloption for customizing the labels appearing the versions menuAdded:
--warningoption for customizing on which folders specific warnings are displayedAdded:
--latestoption for configuring which folder is the “latest stable release”Added: Write a script
versions.pyto the root of thegh-pagesbranch (--write-versions-pyoption)Changed: unreleased and pre-released versions now show different warnings by default
Changed:
index.htmltemplate is now rendered with fullversion_dataChanged: development/pre-release versions now longer have the “dev” suffix in the versions menu by default
Changed: The versions menu now uses the same ordering of versions as Read-the-Docs, by default: the folders are ordered from most current to least current.
Changed: internal format of
versions.jsonRemoved:
--default-branchoption. This is replaced by the new--latestoption and enhanced template rendering of theindex.htmlRemoved:
--suffix-unreleasedoption. This can now be achieved via the--labeloption
This is a major release that breaks backwards compatibility.
Specifically, due to the changes in versions.json, when upgrading from older versions, it
may be necessary to replace doctr-versions-menu.js files in existing
folders in a project’s gh-pages branch.
0.1.0 (2020-01-11)¶
Initial release of doctr-versions-menu.