-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustdoc should have more granular source links #9977
Comments
rustdoc does actually have source links for things in the upper-right of every page (http://static.rust-lang.org/doc/master/std/index.html), but were you looking for more specific source links on certain items? |
It could be nice to have more source links for things like methods and functions. |
Adjusting title from "rustdoc should have source links" to what it currently is. |
I didn't even notice that! However, these links don't go to where I would expect them to. All of the ones that I've clicked on take me to different lines in std.rs which isn't very useful behavior. For example http://static.rust-lang.org/doc/master/std/ascii/index.html the link goes to http://static.rust-lang.org/doc/master/src/std/home/rustbuild/src/rust-buildbot/slave/doc/build/src/libstd/std.rs.html#125 but I would expect it to go to http://static.rust-lang.org/doc/master/src/std/home/rustbuild/src/rust-buildbot/slave/doc/build/src/libstd/str/ascii.rs.html |
To answer your question, I am looking for more specific source links on certain items. |
I might also suggest renaming |
Closing in favor of #12926 |
As a very new user to Rust, I would find it incredibly helpful if source links were provided by rustdoc. Haskell's Haddock does this and I've found it really useful; here's an example of the output: http://lambda.haskell.org/platform/doc/current/ghc-doc/libraries/haskell2010-1.1.1.0/Prelude.html (see the "Source" link to the right of any function, type or typeclass).
The text was updated successfully, but these errors were encountered: