From a541f4d3c464616f0038812d607315c703d2ee37 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 5 Dec 2021 14:06:59 +0100 Subject: [PATCH] Reverse branch order --- documentation-generator/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/documentation-generator/run.py b/documentation-generator/run.py index 6aeb180e..b6e1e153 100755 --- a/documentation-generator/run.py +++ b/documentation-generator/run.py @@ -49,9 +49,10 @@ def convert_doc(src_path, to_path, branch, branches): json.dump({ "document-css": False, "branch": branch, - "branches": [{"default": b == branch, + "branches": [{"name": b, "href": urllib.parse.quote_plus("%s.html" % b), - "name": b} for b in branches]}, metadata_file) + "default": b == branch} + for b in reversed(branches)]}, metadata_file) metadata_file.flush() raw_html = subprocess.run([ PANDOC_EXE,