Skip to content

Commit 549005b

Browse files
author
Michael Arbel
committed
ascending order for versions
1 parent 1b9613f commit 549005b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/_templates/versioning.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<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>
66
<ul>
77

8-
{%- for item in versions.branches %}
8+
{%- for item in versions.branches | sort(attribute='name', reverse=True) %}
99
{%- if item.name.startswith('release') %}
1010
<!-- extract version from branch name of the form relase/0.2.x -->
1111
{%- set version = '.'.join(item.name.split('/')[1].split('.')[:2]) %}

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
project = ver_dic["PROJECT"]
3737
author = ver_dic["AUTHOR"]
3838
copyright = ver_dic["COPYRIGHT"]
39-
html_title= project+ " "+version
39+
html_title= project
4040

4141

4242
intersphinx_mapping = {

0 commit comments

Comments
 (0)