-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Discourage search engines from indexing old documentation builds #10616
Comments
As one example, the first hit that comes up when I search Google for "qiskit BasePauli" is to the 0.25 documentation (the Japanese version of it, in fact). |
Yes, you are correct @garrison; this occurs frequently and causes a great deal of confusion. When I googled "support vector machine qiskit" the other day, the tutorial for version 0.24.1 was the first result; instead, it should point to the latest tutorials for version 0.34.1. |
Related: there is an outdated build of the qiskit-optimization documentation that ranks high in search results at [1], without any indication in the URL that it might not be the latest version. The actual latest is at [2]. |
The indexing of old documentation should hopefully sort itself out given a little bit of time now, just by nature of how the algorithm works; paths at I don't think adding a The two problems mentioned in the comments are slightly different to the original one:
|
On further investigation, I think I know what the issue with the optimisation (and other) tutorials is that the deployment script effectively does Previously I was only looking at the |
So it was an HTML issue, @jakelishman 😄 |
This particular part of it wasn't an HTML issue as such - we already had all the right files generated, the problem was we were just excluding some of them from being synced from the build server to the production server, which was leaving old stuff in place. If you go to https://qiskit.org/documentation/tutorials/optimization now, you should get 301 redirected to https://qiskit.org/documentation/optimization/tutorials (you might need to reload with cache disabled). Search engines will pick up the permanent redirect in the next few days, so that part should be solved. The other issue, about the documentation in the |
Before filing this issue, I did a quick survey of some other projects that I admire for having excellent documentation, and I noticed that some have the I really like the idea of having a banner. Many other projects (e.g. Julia, Django, and projects hosted on readthedocs) also have a selector on the page where you can easily switch to any other version of the documentation. Of those, Django is the only one that links to the corresponding page of the documentation, rather than the front page of it, when switching to a different version. I find this especially convenient. An example of this in action is at https://docs.djangoproject.com/en/dev/intro/install/ |
Since #10611, this should now be done on Terra. |
Also, after #10610, this will also apply to the |
I believe there is nothing left for the Qiskit developers to do here, especially now that the documentation is no longer on qiskit.org. |
Often, outdated versions of the qiskit documentation rank higher in search engine results than current documentation. This is especially noticable with Qiskit/qiskit-metapackage#1389, as many of these pages are broken links, currently.
What is the expected behavior?
We should try to prevent outdated documentation from appearing in search results. This can be improved by adding
<meta name="robots" content="noindex">
to the<head>
of each page in each old documentation build.The text was updated successfully, but these errors were encountered: