-
Notifications
You must be signed in to change notification settings - Fork 212
Transform "documentation" tab into button #1032
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
cc367b9
to
061c983
Compare
Now that I think about this more, I'm not sure about this change ... it makes the /crate page very inconsistent with respect to the release pages, e.g. https://docs.rs/releases/stars. |
It's voluntary and I proposed to discussed about it. Discussion is still open. :) |
Yeah, I think chasing the rustdoc styling for docs.rs is not the best choice, especially if we want to eventually make docs.rs in line with the website styling. |
Agreed, that's why when we're still in "crate focus", we have a sidebar simply because the tab system is just not adapted. However, for the release pages, it totally makes sense (in my opinion). |
I'd keep everything that's not rustdoc with the same, consistent styling. |
Except that the current tab style is not appropriate for the crate pages because the behavior of the tabs isn't consistent. |
3c9ae12
to
3176fdd
Compare
3176fdd
to
8dab4d4
Compare
Looks good! Two notes:
|
Also, it seems a bit off-centered. |
A bit more of precision on this one please. 😆 (I'll implement the other remarks in the meantime) |
8dab4d4
to
40f4381
Compare
40f4381
to
59aafbf
Compare
Mostly looks good now! The only two changes I'd make:
|
59aafbf
to
d688dc7
Compare
Done! |
I'm unsure about this change too :P I like making 'Documentation' a separate button, because it takes you to a whole new page. I don't like though that it's over on the right side of the screen - it's harder to find if you're looking in the old place and it's also away from the main focus, which is the crate title. Maybe we could put it in the center instead (literally front and center ;)? Then it would be easier to find. |
It's quite difficult to miss it though. But just by curiosity, where would you put it? (screenshot done with gimp please!) |
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.
Then it's a bug! I'll fix it. |
d688dc7
to
a01fe9b
Compare
About is fixed: We should really think about #996 :/ I'll review the rest in the meantime so you can fix bugs in parallel ;) |
04c1c05
to
3b53296
Compare
Fixed release page as well and fixed the nits.
Yep but it's a tricky thing to do... We can use the same system we use in rustdoc but we still have the issue with getting the screenshot differences. But in here, I think this problem would be very limited considering that the build is quite small in comparison. |
Thanks for working on this! |
Same as before but with a fix for the 404 pages and a test to avoid regressions.
EDIT: Back to tab style but the "documentation" tab is now a button:
mobile:
"normal":