From 9efd4aafdc294e7942a19c697f186da3bce32f64 Mon Sep 17 00:00:00 2001 From: Julien Maffre <42961061+jumaffre@users.noreply.github.com> Date: Tue, 15 Dec 2020 13:09:39 +0000 Subject: [PATCH] Doc versions nice-ness (#2023) --- doc/_templates/sidebar-nav-bs.html | 40 ++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/doc/_templates/sidebar-nav-bs.html b/doc/_templates/sidebar-nav-bs.html index 9e95c07ba..8aa71c179 100644 --- a/doc/_templates/sidebar-nav-bs.html +++ b/doc/_templates/sidebar-nav-bs.html @@ -1,3 +1,28 @@ + + @@ -30,19 +55,14 @@ {% if versions %} - Versions - + Versions + {%- for item in versions.branches|sort(attribute='name', reverse=True) %} - - {{ item.name }} - + {{ item.name }} {%- endfor %} {%- for item in versions.tags|sort(attribute='name', reverse=True) %} - - {{ item.name }} - + {{ item.name }} {%- endfor %} - + {% endif %} - \ No newline at end of file