Skip to content

Commit

Permalink
ascending order for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Arbel committed Feb 28, 2024
1 parent 1b9613f commit 549005b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_templates/versioning.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<li class="toctree-l1 has-children"><a class="reference internal" href="index.html">Versions</a><input class="toctree-checkbox" id="toctree-checkbox-v" name="toctree-checkbox-v" role="switch" type="checkbox"/><label for="toctree-checkbox-v"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label>
<ul>

{%- for item in versions.branches %}
{%- for item in versions.branches | sort(attribute='name', reverse=True) %}
{%- if item.name.startswith('release') %}
<!-- extract version from branch name of the form relase/0.2.x -->
{%- set version = '.'.join(item.name.split('/')[1].split('.')[:2]) %}
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
project = ver_dic["PROJECT"]
author = ver_dic["AUTHOR"]
copyright = ver_dic["COPYRIGHT"]
html_title= project+ " "+version
html_title= project


intersphinx_mapping = {
Expand Down

0 comments on commit 549005b

Please sign in to comment.