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:
parent
2362ccbecd
commit
a541f4d3c4
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue