-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Merge "Structs", "Enums", etc. sections into new "Types" section #92660
Conversation
Does this need a runtime ID redirect as well? The only links that should break are links to the |
9f39a3a
to
0f7603c
Compare
For some reason, all the links are blue now. I don't see how that could result from my change though, so maybe this regressed on master but isn't on nightly yet? EDIT: Fixed. |
Hmm, master hasn't been pushed to since yesterday though... |
This comment has been minimized.
This comment has been minimized.
The new code is much simpler and easier to understand. In fact, the old code actually had a subtle bug where it excluded a few item types, including trait aliases, from the sidebar, even though they are rendered on the page itself! Now, all sections should show up in the sidebar.
0f7603c
to
63fd743
Compare
This comment has been minimized.
This comment has been minimized.
63fd743
to
91274d3
Compare
Hmm, looks like the types aren't sorted within their section... |
ItemType::Function => 10, | ||
ItemType::Typedef => 12, | ||
ItemType::Union => 13, | ||
ItemType::Typedef => 7, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change will impact the search.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only used for rendering module pages I'm pretty sure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, nevermind. I thought it was the mapping for the search index types...
The job Click to see the possible cause of the failure (guessed by this bot)
|
1 similar comment
The job Click to see the possible cause of the failure (guessed by this bot)
|
Looks like GUI tests are failing. I'd love to get this landed. I think it's a very nice simplification. @camelid any chance you'll have time soon to fix the tests? |
Yeah, I'm a bit busy this week, but I'm planning to return to this soon. |
This is a step backwards in usability and discovery. The corresponding issue has more downvotes than upvotes. Please do not merge this. |
…llaumeGomez Refactor sidebar printing code This is the refactoring parts of rust-lang#92660, plus the trait aliases capitalization consistency fix. I think this will be necessary for rust-lang#92658. r? `@GuillaumeGomez`
Closes #92656.
r? @GuillaumeGomez
cc @jsha