mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix sitemap.py breaking after moving it inside the scripts folder
This commit is contained in:
parent
b683580b1b
commit
bec7ef96eb
1 changed files with 2 additions and 2 deletions
|
|
@ -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" <lastmod>{i[1]}</lastmod>\n")
|
||||
f.write(f" <changefreq>{i[2]}</changefreq>\n")
|
||||
f.write(f" <priority>{i[3]}</priority>\n")
|
||||
f.write(f" </url>\n\n")
|
||||
f.write(f" </url>\n")
|
||||
|
||||
f.write("</urlset>")
|
||||
|
|
|
|||
Loading…
Reference in a new issue