Skip to content

Revert "add robots.txt to specify doc versions to appear in search engines" #4584

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

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Apr 9, 2021

Reverts #3291, which added our own robots.txt. I discovered that readthedocs will automatically generate an appropriate robots.txt based on which versions are activated and/or hidden. We can manage the visible versions from readthedocs.

The robots.txt file is at https://circuitpython.readthedocs.io/en/robots.txt.

See https://docs.readthedocs.io/en/stable/versions.html#states:

! Note
Active versions that are hidden will be listed as Disallow: /path/to/version/ in the default robots.txt file created by Read the Docs.

To manage visible versions, we use https://readthedocs.org/projects/circuitpython/versions/, and edit the individual versions. I just added 6.2.x, removed previous 6.x.x versions, and marked older versions as "hidden". Click on the Edit buttons to change the Active/Hidden state:
image
Example:
image

@dhalbert dhalbert requested a review from tannewt April 9, 2021 13:33
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

Good catch. I didn't find that the last time I looked into it either.

@dhalbert
Copy link
Collaborator Author

dhalbert commented Apr 9, 2021

Good catch. I didn't find that the last time I looked into it either.

Yes, maybe this is new, but it's eminently sensible.

@dhalbert dhalbert merged commit 35d618b into main Apr 9, 2021
@tannewt tannewt deleted the revert-3291-robots.txt branch May 19, 2021 17:16
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.

2 participants