Skip to content

robots.txt: disallow non-latest docs torchx/torchelastic #1150

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
Oct 17, 2022

Conversation

d4l3k
Copy link
Member

@d4l3k d4l3k commented Oct 14, 2022

This disables versioned pages for the docs from being indexed in search engines.

There's a lot of old versioned pages that have been indexed by Google such as https://pytorch.org/elastic/0.1.0rc2/overview.html when the new location is in core for torchelastic. This prevents users from being confused by old documentation pages.

The pattern of Disallow: *, Allow: foo works per https://technicalseo.com/tools/robots-txt/

Test plan:

Use https://technicalseo.com/tools/robots-txt/

This disables versioned pages for the docs from being indexed in search engines.

There's a lot of old versioned pages that have been indexed by Google such as https://pytorch.org/elastic/0.1.0rc2/overview.html when the new location is in core for torchelastic. This prevents users from being confused by old documentation pages.

The pattern of Disallow: *, Allow: foo works per https://technicalseo.com/tools/robots-txt/

Test plan:

Use https://technicalseo.com/tools/robots-txt/

* https://pytorch.org/torchelastic/latest/index.html
* https://pytorch.org/elastic/0.1.0rc2/overview.html
* https://pytorch.org/torchx/latest/
* https://pytorch.org/torchx/main/
* https://pytorch.org/torchx/0.2.0/
* https://pytorch.org/torchx/versions.html
@netlify
Copy link

netlify bot commented Oct 14, 2022

👷 Deploy Preview for pytorch-dot-org-preview processing.

Name Link
🔨 Latest commit 2544d8d
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-dot-org-preview/deploys/6349edaf74896d0008dd5668

@d4l3k
Copy link
Member Author

d4l3k commented Oct 14, 2022

@brianjo can you help review this? Thanks!

@svekars svekars merged commit e6174ef into pytorch:site Oct 17, 2022
@d4l3k d4l3k deleted the patch-1 branch October 17, 2022 18:34
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