rustdoc: Remove double toggle to show undocumented items#84317
rustdoc: Remove double toggle to show undocumented items#84317Swatinem wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
Some changes occurred in HTML/CSS/JS. |
|
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
@Swatinem this was changed as part of #54162 I think, in response to #55900. Can you build the Iterator docs locally and see how long they take to load compared the existing page? You can do that with |
|
@jyn514 Also: we should add a |
|
Sure, seems useful. |
|
Ok, gonna add that then. |
|
☔ The latest upstream changes (presumably #84754) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@Swatinem in your screenshot, ToOwned still has the "show hidden undocumented items" toggle - is that intentional? |
Yes, as that has visible-by-default items, vs the other example that only had hidden-by-default items. TBH, I’m not sure I want to continue with this patch as its a giant hack, and since other people are touching the toggles anyway, someone probably has a much better solution. |
This removes an indirection, having to expand a trait impl first, just to have another toggle inside.
TBH, the toggles code in rustdoc is super hard to understand.
Before:
After: