mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Commit index.html
This commit is contained in:
parent
60e448b2b2
commit
275246b0e4
1 changed files with 3 additions and 1 deletions
|
@ -135,8 +135,10 @@ def main():
|
||||||
convert_doc(src_path, to_path, branch, branches)
|
convert_doc(src_path, to_path, branch, branches)
|
||||||
run_git("add", "--", to_path)
|
run_git("add", "--", to_path)
|
||||||
if branches:
|
if branches:
|
||||||
with open(os.path.join(TARGET_DIR, "index.html"), "w") as f:
|
index_path = os.path.join(TARGET_DIR, "index.html")
|
||||||
|
with open(index_path, "w") as f:
|
||||||
f.write(make_index_html(branches[0]))
|
f.write(make_index_html(branches[0]))
|
||||||
|
run_git("add", "--", index_path)
|
||||||
with contextlib.suppress(subprocess.CalledProcessError):
|
with contextlib.suppress(subprocess.CalledProcessError):
|
||||||
run_git("diff", "--cached", "--quiet")
|
run_git("diff", "--cached", "--quiet")
|
||||||
print("No changes", file=sys.stderr)
|
print("No changes", file=sys.stderr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue