Skip to content

Commit

Permalink
[Doc] Limit search engine crawler indexing to latest and master (#31214)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvyu authored Dec 20, 2022
1 parent 9b49775 commit a15037c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

html_extra_path = ["robots.txt"]

html_baseurl = "https://docs.ray.io/en/latest"

# This pattern matches:
# - Python Repl prompts (">>> ") and it's continuation ("... ")
# - Bash prompts ("$ ")
Expand Down
2 changes: 1 addition & 1 deletion doc/source/robots.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Algolia-Crawler-Verif: C37A60AFB138256B
User-agent: *
Allow: /
Disallow: /
Allow: /*/latest/
Allow: /en/latest/ # Fallback for bots that don't understand wildcards
Allow: /*/master/
Expand Down

0 comments on commit a15037c

Please sign in to comment.