Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added robots.txt to disallow older version docs. #2833

Merged

Conversation

cgkoutzigiannis
Copy link
Contributor

Fixes #2708.
Added a robots.txt file in a new folder to disallow older version docs to show up in search engines. I used Sphinx config option html_extra_path to add the new folder.
I think it makes sense to create a new folder for this, since it can also hold a custom sitemap file, if we decide to add one in the future. However I am open to suggestions on this.
I tested the docs locally and it serves the robots.txt just fine.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks for the fix!

@freakboy3742 freakboy3742 merged commit dbda4d4 into beeware:main Sep 11, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide non-default readthedocs versions from search engines
2 participants