From bec7ef96eb6aa74745ff308ac6e42a108977f45e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 23 Dec 2020 14:21:10 +0100 Subject: [PATCH] Fix sitemap.py breaking after moving it inside the scripts folder --- docs/scripts/sitemap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/scripts/sitemap.py b/docs/scripts/sitemap.py index 8e9bdded..bd3124bc 100644 --- a/docs/scripts/sitemap.py +++ b/docs/scripts/sitemap.py @@ -51,7 +51,7 @@ with open("sitemap.xml", "w") as f: if not path.endswith(".rst"): return - path = path.split("/")[1:] + path = path.split("/")[2:] if path[0].endswith(".rst"): folder = "." @@ -76,6 +76,6 @@ with open("sitemap.xml", "w") as f: f.write(f" {i[1]}\n") f.write(f" {i[2]}\n") f.write(f" {i[3]}\n") - f.write(f" \n\n") + f.write(f" \n") f.write("")