mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 10:23:16 -05:00
fix: announce the sitemap from each page
This commit is contained in:
1 parent
6c50e29dfa
commit
e56621de42
3 files changed
+23
-6
No files matched your search
@@ -4226,12 +4226,10 @@ def _generate(args: argparse.Namespace) -> None:
|
||||
js_dest.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(js_src, js_dest)
|
||||
|
||||
# mkdocs writes sitemap.xml but no robots.txt, so nothing points a crawler
|
||||
# at it. Everything published here is meant to be indexed.
|
||||
write_if_changed(
|
||||
str(docs / "robots.txt"),
|
||||
"User-agent: *\nAllow: /\n\nSitemap: https://abdess.github.io/retrobios/sitemap.xml\n",
|
||||
)
|
||||
# No robots.txt: a crawler reads it only at the host root (RFC 9309), and
|
||||
# this project site lives under /retrobios/. Every page's head points at
|
||||
# the sitemap instead (overrides/main.html).
|
||||
(docs / "robots.txt").unlink(missing_ok=True)
|
||||
|
||||
# Copy branding assets
|
||||
images_dest = docs / "assets" / "images"
|
||||
|
||||
Reference in new issue
Block a user