Allow master docs to remove from Google search results#1723
Closed
Allow master docs to remove from Google search results#1723
Conversation
👷 Deploy Preview for pytorch-dot-org-preview processing.
|
Contributor
|
Perhaps I misunderstand something, but changes introduced in pytorch/docs#10 will be overwritten by the next doc build, wouldn't they? Also, particularly in case of https://pytorch.org/docs/master/community/contribution_guide.html we prefer latest documentation to ones that is mentioned in release docs |
Contributor
|
Sorry, I misunderstood an intention of this PR, this is to hide docs for deprecated In that case, would a symlink from |
Collaborator
Author
|
We will create a symlink instead as suggested |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We want to unlist this page in Google: https://pytorch.org/docs/master/community/contribution_guide.html - because it goes to the master docs and we want it to go the stable or main docs. The existing way of just unlisting with robots.txt did not give the desired result - the master docs version appeared as a first result in the search. Google suggests to use the
nonindexto unlist pages.I have added the noindex tag to all master docs: pytorch/docs#10
For this change to take effect, we need to allow master docs in robots.txt according to this official Google recommendation:
https://support.google.com/webmasters/answer/7489871?hl=en#zippy=%2Cthis-is-my-site%2Cthe-page-is-blocked-by-robotstxt
At the moment, while the master docs have noindex tag, I still see this as my first result in Google for "PyTorch Contributor Guide":
If you click on Learn Why, it would take you to the aforementioned support.google.com page that suggest to remove the disallow rule from robots.txt.