1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Reverse branch order

This commit is contained in:
Unrud 2021-12-05 14:06:59 +01:00
parent 2362ccbecd
commit a541f4d3c4

View file

@ -49,9 +49,10 @@ def convert_doc(src_path, to_path, branch, branches):
json.dump({ json.dump({
"document-css": False, "document-css": False,
"branch": branch, "branch": branch,
"branches": [{"default": b == branch, "branches": [{"name": b,
"href": urllib.parse.quote_plus("%s.html" % 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() metadata_file.flush()
raw_html = subprocess.run([ raw_html = subprocess.run([
PANDOC_EXE, PANDOC_EXE,