-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Fix indexing for k8s.io #9767
Fix indexing for k8s.io #9767
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit 9973900 https://deploy-preview-9767--kubernetes-io-master-staging.netlify.com |
6485677
to
a4f5349
Compare
a4f5349
to
9973900
Compare
LGTM. |
@@ -0,0 +1,3 @@ | |||
# Prevent bots from indexing site | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this comment still unclosed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that's actually not an opening comment delimiter. It's specifying that the header tag should be for all the pages in the site, similar to file path syntax on the command line, e.g. rm -rf /*
LOL. See https://www.netlify.com/docs/headers-and-basic-auth/
It seems hard to test this before going live, so .... /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mistyhacks The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Did this cause google to delist the docs on kubernetes.io? |
@colek42 This fixed the reason they were de-indexed. Re-indexing will take time. |
@chenopis May I ask the reasoning behind this PR? There was already a system in place for generating a Also, in the future, if a static resource needs to end up in the I think the best course of action here is to modify the existing |
@lucperkins Previously, we had to address the problem of other similar published branches (e.g. https://v1-9.docs.kubernetes.io/) from being indexed by Google search, which diluted the results of the main https://kubernetes.io site. Consequently, I set up a system to add the I'm not saying this is the best way to solve it, but I had to revert some of @bep and your changes to address the immediate de-indexing problems that were getting reported. Perhaps at the next SIG Docs meeting we can discuss a better way to handle this issue so that it still uses the HTTP/2 push feature but only adds the noindex directive to the non- |
Partial revert of #9225
Partial revert of #9703
Fixes kubernetes/kubernetes#67013
Fixes #9758