Skip to content

Commit

Permalink
Doc: add custom robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 18, 2024
1 parent 1ddaee4 commit 7fd0162
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
# Add any paths that contain custom static files (such as style sheets)
html_static_path = ["_static"]

# For robots.txt
html_extra_path = ["extra_path"]

html_css_files = [
"theme_overrides.css", # override wide tables in RTD theme
]
Expand Down
4 changes: 4 additions & 0 deletions docs/source/extra_path/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /en/stable/
Disallow: /en/
Sitemap: https://proj.org/sitemap.xml

0 comments on commit 7fd0162

Please sign in to comment.