-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: make impls less noisy #12961
Conversation
Cool! I think you forgot to upload the std docs? (I get a 404 error clicking on the main link.) Also, the default method sections have a scroll bar always for me, and, there seems to be a section given even for traits without default methods, example of both: http://docs.octayn.net/doc/rand/struct.XorShiftRng.html |
They were uploading (ever so slowly); everything is there now. I seem to On Sun, Mar 16, 2014 at 11:00 PM, Huon Wilson [email protected]:
|
WHY ARE WE YELLING? |
I'm a little uncomfortable pulling in all of jquery-ui for this one use case. The style doesn't quite match the rest of rustdoc (including the fonts), and it seems a little too fancy for what we've got going on. I think I would also prefer a concise description of methods (like in a trait definition) rather than completely omitting them. I feel like it's the documentation which is taking up the most space. |
This isn't all of jquery-ui. It's a custom version that only contains the On Sun, Mar 16, 2014 at 11:26 PM, Alex Crichton [email protected]:
|
I'm not a webdev so anything else is going to need someone else to do. On Sun, Mar 16, 2014 at 11:27 PM, Corey Richardson [email protected] wrote:
|
The style is also easy to fix... I'm using the same font that non-headers On Sun, Mar 16, 2014 at 11:28 PM, Corey Richardson [email protected] wrote:
|
An accordion does make it harder to ctrl-f for some method on a single page. |
Hm, I also don't know how it interacts with the doc search. Something On Sun, Mar 16, 2014 at 11:30 PM, Huon Wilson [email protected]:
|
I would prefer only collapsing the documentation for each individual method, another mild problem is that links like http://docs.octayn.net/doc/std/io/struct.ChanReader.html#method.read_le_u16 no longer work (linking to a default method) |
It looks like default methods aren't even in the search index, which is On Sun, Mar 16, 2014 at 11:32 PM, Corey Richardson [email protected] wrote:
|
Indeed. I accidentally had collapsing for each method originally (due to On Sun, Mar 16, 2014 at 11:35 PM, Alex Crichton [email protected]:
|
#11991 (comment) is another solution that would help: just omit inherited documentation from signatures. (I guess we could have it expandable rather than completely omitted, as you suggest.) |
I'm mostly happy with the collapsing now, but the style is still jarring. The signatures look wrong and, when expanded, the background is an ugly white. Not too sure how to fix. |
(The only up-to-date rendered docs will be at On Sun, Mar 16, 2014 at 11:43 PM, Huon Wilson [email protected]:
|
I don't think jquery-ui should be used for this, it's too orthogonal to the rest of the design of rustdoc. All this needs to do is add |
The accordion seems to misbehave when the inherited method does not have a documentation. (Example) |
I'll roll an expando tomorrow. On Mon, Mar 17, 2014 at 12:17 AM, Kang Seonghoon
|
@cmr, the current three commits in this PR I think are great to merge. Perhaps they could be rebased on the noise level of the docs could be reduced later? |
@alexcrichton ah sorry, there had been a bunch of discussion in irc about reducing noise and it wasn't clear this was desirable. rebased. |
@alexcrichton review addressed |
Rendered form available at http://docs.octayn.net/doc/ This moves derived impls to the bottom of the list, separate from the rest, and collapses default methods that aren't overridden into an expandible accordion.
…efault, r=Alexendoo Fix incorrect suggestion for `manual_unwrap_or_default` Fixes rust-lang#12928. If this not a "simple" pattern, better not emit the lint. changelog: Fix incorrect suggestion for `manual_unwrap_or_default`
…efault, r=Alexendoo Fix incorrect suggestion for `manual_unwrap_or_default` Fixes rust-lang#12928. If this not a "simple" pattern, better not emit the lint. changelog: Fix incorrect suggestion for `manual_unwrap_or_default`
…efault, r=Alexendoo Fix incorrect suggestion for `manual_unwrap_or_default` Fixes rust-lang#12928. If this not a "simple" pattern, better not emit the lint. changelog: Fix incorrect suggestion for `manual_unwrap_or_default`
Rendered form available at http://docs.octayn.net/doc/
This moves derived impls to the bottom of the list, separate from the rest,
and collapses default methods that aren't overridden into an expandible
accordion.