-
Notifications
You must be signed in to change notification settings - Fork 203
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
Show a consistent navbar across docs.rs and rustdoc pages #1089
Conversation
af187ad
to
609de32
Compare
I think I like this better. @jsha , @GuillaumeGomez , @Kixiron , what do you think? |
This is great! I like the consistency across all pages. I have a small branch locally to give the About / Releases / Rust menus the same treatment we recently gave the crate / Source / Platform menus: Click to open and click to close rather than hover. I'll rebase on this branch once it lands. |
I prefer this new one as well! |
@Nemo157 thanks for working on this! |
Moves the docs.rs internal navbar links to the right-hand side, and keeps the crate-related navbar links when viewing the crate details/builds/source pages (while removing the dropdown that duplicates the crate details).
There is one remaining issue that I don't want to fix here; the "go to latest version" link doesn't appear on the non-rustdoc pages. The metadata used for rendering builds and source files doesn't currently pull enough details from the database for this, I think it might make the most sense to make both of them get the full
CrateDetails
and move theis_latest_version
etc. checking into Tera helpers rather than being extra context variables, but that seems better done as a separate refactoring.related to #1077
Screenshots: