Docs.rs: Top menu is too narrow for popular crates

Created on 23 Dec 2020  路  3Comments  路  Source: rust-lang/docs.rs

Like tokio:

image

(the issue count ends up on the next line)

A-backend A-docs-rs-themes C-bug E-easy mentor

Most helpful comment

I think we should just show 'Repository' there instead honestly, the github logo doesn't stand out enough to make it clear that it's a link.

All 3 comments

I think we should just show 'Repository' there instead honestly, the github logo doesn't stand out enough to make it clear that it's a link.

That works for me, I don't particularly care for those numbers, and if it sidesteps the GitLab integration issue, that's even better.

Mentoring instructions:

Remove the first {% if %} in https://github.com/rust-lang/docs.rs/blob/df489659d0de9baa5f23896dbc9260a00206f633/templates/rustdoc/topbar.html#L61-L79
so that 'Repository' is shown whether or not this crate is hosted on github.

Was this page helpful?
0 / 5 - 0 ratings