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

No way to get to docs for previous versions of std #67345

Closed
plumenator opened this issue Dec 16, 2019 · 9 comments
Closed

No way to get to docs for previous versions of std #67345

plumenator opened this issue Dec 16, 2019 · 9 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-feature-request Category: A feature request, i.e: not implemented / a PR.

Comments

@plumenator
Copy link

plumenator commented Dec 16, 2019

Content Bug Report

Page(s) Affected

https://doc.rust-lang.org/std/index.html

What needs to be fixed?

Missing a drop down to select the version of std

Workaround

Edit the URL directly like so:

https://doc.rust-lang.org/<version>/std/index.html

Suggested Improvement

Like at docs.rs, it would be great if we could switch between versions of the documentation.

@plumenator
Copy link
Author

Moved from rust-lang/www.rust-lang.org#965

@tesuji
Copy link
Contributor

tesuji commented Dec 16, 2019

It does, for example https://doc.rust-lang.org/1.37.0/std/index.html

@plumenator
Copy link
Author

Sorry, I meant to say that there's no way from the UI. One has to already know (or guess) the URL to access it

@plumenator
Copy link
Author

Updated to description with the workaround

@jonas-schievink
Copy link
Contributor

This doesn't really belong in this repo either as rustdoc documents one crate at a time and doesn't know about other versions. docs.rs already does something like this for ecosystem crates, maybe that's something to look into for libstd too?

@csmoe csmoe added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Dec 16, 2019
@plumenator
Copy link
Author

I think it would be less of an issue if we could generate it locally with cargo. For std, the local docs send you to the website.

@tesuji
Copy link
Contributor

tesuji commented Dec 16, 2019

What are the uses of rustdoc for specific Rust version? Since Rust is really good at
keeping backward compatibility.

@jonas-schievink jonas-schievink added the C-feature-request Category: A feature request, i.e: not implemented / a PR. label Dec 16, 2019
@ehuss
Copy link
Contributor

ehuss commented Dec 16, 2019

I think this is a duplicate of #44687 (RFC 1826 which includes a version selector) and #30062.

@jonas-schievink
Copy link
Contributor

Closing in favor of #30062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-feature-request Category: A feature request, i.e: not implemented / a PR.
Projects
None yet
Development

No branches or pull requests

5 participants