-
Notifications
You must be signed in to change notification settings - Fork 211
Unintuitive behavior of the vast documentation library #1796
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
Comments
Could you give an example of where you see this? That's not the behavior I see and would be considered a bug.
Are there any negative effects from this documentation being on a separate site? All docs on docs.rs should be automatically linked through, and since std doesn't (publicly) depend on crates.io crates there can be no reverse links. |
Whoops, missed point 1
This should work in the vast majority of cases, items in the rustdoc generated details should all interlink automatically. In the prose sections developers can (and generally do) use intra-doc-links. There are bugs with these (e.g. #1588), but those should be fixable if someone will put in the work. |
I am using Firefox on Linux Munit
Thanks for your quick response. |
I am still a newbie to Rust and its ecosystem however so far my biggest struggle is navigating the documentation. The thing is, that specific cause has only come to light after some reflection and confidence in my understanding of things. I expect others are stumbling through the documentation structure equally oblivious. The issues are three...
As a strongly type language it should be convenient to locate a type or trait and all its related methods. Often these require and produce additional types and traits. It should be possible to follow a trail through the documentation as links between such various declarations per the nature of HTML. Unfortunately, that is not the browser experience which is a massively missed opportunity.
docs.rs
allows for the selection of other documentation libraries. However, it erases the browser link history when that is done such that you cannot simply "backspace" to return todocs.rs
. That was a surprising behaviour. As a result,docs.rs
does not function a root in a hierarchy but merely as a one way door.Finally and surprisingly, the documentation for the standard library is separate from that for
crates.io
. This separation is annoying since the distinction is nonsensical. The correct delineation is between the language syntax and the libraries (types, methods, modules, etc.) produces and uses. Granted, there are library features that some language syntax depend on but their documentation may be duplicated in the syntax description or pointed via a link into the library documentation. For instance,for
overIter
,?
returningResult
orOption
, etc.The text was updated successfully, but these errors were encountered: