-
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
Documentation needs indexes (function summaries) #40273
Comments
Ok, I realized just now that if you push the '-' in the top of the webpage, all function definitions collapse so you can see a list of function prototypes. But I think an index page with prototypes + one line explanation, like the java docs, is better. |
There are a lot of open issues about rustdoc's output. I thought this was an exact duplicate, but I cannot find it. |
All this time I've been using the API docs and didn't realise that. This aids usability enormously! Can this feature somehow be made more obvious? Descriptions could maybe even be collapsed by default; usage is quite often clear from the prototype alone. |
I just spoke to several developers who had the same issue with rustdoc. Pressing '-' helps, but ideally, there'd be an index at the top with all the functions, and anchor links to full descriptions below. Much like the trait functions have small summaries rather than complete descriptions. |
How is this significantly different than |
It's on top and needs a click to be activated. Its state is not remembered. You can't use forward/back navigation to jump between index and method description. And often one might not really care whether the method comes from a trait implementation or a plain impl block, especially if it's a deref. So the trait signatures, being fat |
Some modules and structs have a lot of prose on top before you can even get to what you're looking for.
I realize that there is a navigation on the left that lets me skip down to the modules and structs, but that is still suboptimal compared to javadocs.
|
This seems to be related: #14475 |
Closing this as a duplicate of #14475 |
I think that the current Rust documentation for the standard API is "too verbose". Don't get me wrong, is perfectly fine and useful like it is now. But:
I think there are 2 possible solutions to this:
Condense the docs in a HTML "list" and show each method example and comments when you click on it.
Create an index on the top of the page (or another page) with one-line description of what the function does and a link to the details in the same page (down).
I'm here not just to ask for work. I can help on it if you guide me a little, even being a rust noob.
The text was updated successfully, but these errors were encountered: