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

Hide old documentation from google (robots.txt) #239

Closed
tonigi opened this issue May 27, 2017 · 3 comments
Closed

Hide old documentation from google (robots.txt) #239

tonigi opened this issue May 27, 2017 · 3 comments
Assignees
Labels

Comments

@tonigi
Copy link
Contributor

tonigi commented May 27, 2017

Google returns a mixture of old and new version of manual pages. Perhaps a robots.txt can be used to hide the old ones.

@GiovanniBussi GiovanniBussi self-assigned this May 28, 2017
@GiovanniBussi
Copy link
Member

I think robots.txt only works in the root directory, so cannot be done on github pages.

We should make a script that adds <meta name="robots" content="noindex"> to all the html files in the manual. See here.

Should not be difficult.

GiovanniBussi added a commit to plumed/doc-v2.0 that referenced this issue May 28, 2017
Avoid indexing this manual version.

See plumed/plumed2#239
@GiovanniBussi
Copy link
Member

Tried here for hand-generated doc-v2.0.

I will wait a few weeks to see if it works (that is if google plumed distance stops reporting manual for v2.0). In case so, I will find out how to fix the travis-generated manuals (v2.1 and up). In this case it is perhaps better to regenerate the manual on travis including the tag.

GiovanniBussi added a commit that referenced this issue Jun 7, 2017
GiovanniBussi added a commit that referenced this issue Jun 7, 2017
[makedoc]
GiovanniBussi added a commit that referenced this issue Jun 7, 2017
[makedoc]
GiovanniBussi added a commit to plumed/doc-v2.1 that referenced this issue Jun 7, 2017
Avoid indexing this manual version.

See plumed/plumed2#239
GiovanniBussi added a commit to plumed/doc-v2.2 that referenced this issue Jun 7, 2017
Avoid indexing this manual version.

See plumed/plumed2#239
GiovanniBussi added a commit to plumed/doc-munster that referenced this issue Jun 7, 2017
Avoid indexing this manual version.

See plumed/plumed2#239
GiovanniBussi added a commit to plumed/doc-cineca-2015 that referenced this issue Jun 7, 2017
Avoid indexing this manual version.

See plumed/plumed2#239
GiovanniBussi added a commit that referenced this issue Jun 7, 2017
@GiovanniBussi
Copy link
Member

The fix on v2.0 worked (i.e. google search plumed distance does not show v2.0 doc anymore).

Thus I did the following:

  • added <meta name="robots" content="noindex"> to all html files related to old versions
  • revoked write permission on old manuals to plumedbot so that they are not involuntarily overwritten by travis
  • modified .travis/pushdoc script such that it decides based on branch name whether it is supported (and should be indexed) or unsupported (and should be not indexed).

Changes should be effective in google search within a couple of weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants