Skip to content
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

Merged
merged 7 commits into from
Oct 13, 2020

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented Oct 12, 2020

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 the is_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:

image

image

image

image

image

image

image

image

@jyn514 jyn514 added A-frontend Area: Web frontend S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Oct 13, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 13, 2020

I think I like this better. @jsha , @GuillaumeGomez , @Kixiron , what do you think?

@jsha
Copy link
Contributor

jsha commented Oct 13, 2020

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.

@GuillaumeGomez
Copy link
Member

I prefer this new one as well!

@jyn514 jyn514 merged commit 001f82f into rust-lang:master Oct 13, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 13, 2020

@Nemo157 thanks for working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Web frontend S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants