Skip to content

Commit bec7ef9

Browse files
committed
Fix sitemap.py breaking after moving it inside the scripts folder
1 parent b683580 commit bec7ef9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/scripts/sitemap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def search(path):
5151
if not path.endswith(".rst"):
5252
return
5353

54-
path = path.split("/")[1:]
54+
path = path.split("/")[2:]
5555

5656
if path[0].endswith(".rst"):
5757
folder = "."
@@ -76,6 +76,6 @@ def search(path):
7676
f.write(f" <lastmod>{i[1]}</lastmod>\n")
7777
f.write(f" <changefreq>{i[2]}</changefreq>\n")
7878
f.write(f" <priority>{i[3]}</priority>\n")
79-
f.write(f" </url>\n\n")
79+
f.write(f" </url>\n")
8080

8181
f.write("</urlset>")

0 commit comments

Comments
 (0)