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

Add rustdoc option to make old docs "less important" to make search engine results more pertinent #48671

Open
GuillaumeGomez opened this issue Mar 2, 2018 · 3 comments
Assignees
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-release Relevant to the release subteam, which will review and decide on the PR/issue.

Comments

@GuillaumeGomez
Copy link
Member

I think about something like:

rustdoc --robots-options="less-important" # or whatever option it is for search engine robots

However, this option will need to be called for the version specific docs generation (I'm talking about doc.rust-lang.org/doc/1.x.y) and not on "not specific" docs ( doc.rust-lang.org/doc/stable, ``doc.rust-lang.org/doc/betaordoc.rust-lang.org/doc/nightly`). Maybe you know something about this @Mark-Simulacrum? (wild guess)

cc @QuietMisdreavus (does the option's name seems ok to you?)

@GuillaumeGomez GuillaumeGomez self-assigned this Mar 2, 2018
@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools T-release Relevant to the release subteam, which will review and decide on the PR/issue. labels Mar 2, 2018
@steveklabnik
Copy link
Member

My understanding is that this would generate different HTML, meaning we'd have to ship new releases.

We already have a solution to this problem with #44687, IMO

@GuillaumeGomez
Copy link
Member Author

We talked about it on IRC and apparently, a simple solution would be to just update the robots.txt once and for all.

@jkordish jkordish added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label May 16, 2018
@steveklabnik steveklabnik removed A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels May 28, 2018
@kornelski
Copy link
Contributor

#68677

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-release Relevant to the release subteam, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants