-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: Remove double toggle to show undocumented items #84317
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
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: