-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Prevent deprecated documentation from showing up in search engine top results #6160
Comments
Hey, @awaelchli I can work on this one. Can you help me understand how the docs are generated and where are the old docs stored? Thanks |
Hi, that's great. The docs are hosted on RTD and every time a new lightning version is released, a new build is triggered and stored on the RTD server. Here is another resource I found: I am not sure if some of these settings require admin access to the RTD account for lightning |
YES! I am very much to have reached only stable/latest docs, mind sending PR ;] |
Hey, @awaelchli it seems like you were right. RTD creates a default robots.txt file on the RTD server and I would need access to that to change anything. But it seems like a simple I may be able to add a robots.txt under |
Actually I think this needs to be entirely configured in the pytorch lightning account at RTD. The docs here explain about how one can choose version to be "hidden", i.e. invisible to search engines: https://docs.readthedocs.io/en/stable/versions.html#version-states @Borda do you have access to RTD and can set old versions as "hidden"? |
Yes @awaelchli , that's what I meant. Sorry if that was not clear. It has to be done on the RTD account. |
yes, I can so hide all except last release? |
Yes, I think everything except stable could be hidden. |
Oh I didn't know it would affect this list. I think we still need to provide links to all version on the page itself, at least to 1.0. So I'm wondering, is it even possible to hide from search results, but not there in the list? |
@awaelchli I have set https://pytorch-lightning.readthedocs.io/robots.txt |
I think that is exactly what we need! Looks good. Were you able to edit directly this robots file? |
no, it is generated by setting a version as hidden, https://docs.readthedocs.io/en/latest/versions.html#hidden |
Resolved this issue. |
📚 Documentation
Currently when we search keywords like "pytorch lightning trainer" we get results that point to very very very outdated docs!
It should instead point to the latest stable documentation pages.
Investigate these options here:
adding a robots.txt is probably enough
cc @alemkhenter
The text was updated successfully, but these errors were encountered: