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("")