-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc: Style Improvements? #90632
Comments
@exzachlyvv thanks for thinking about this! Docs.rs actually has its documentation generated by a tool called rustdoc, so I'll move this over the right repository. If you'd like to make some styling changes take a look at |
cc @jsha |
My 2c -- I think UI improvements to Rustdoc should be rooted in ease of use, not quality of aesthetic. I agree that the Laravel docs look quite nice, but I personally find their font harder to read than Source Serif Pro. IMO, documentation should fundamentally be utilitarian, not beautiful. Which isn't to say there aren't changes that both make the documentation easier to use AND prettier to look at. But the grounding question should always be things like, does this change reduce the amount of time it takes for user X to solve problem Y? |
Also fwiw, the Laravel automatically-generated documentation (which is the main rustdoc use case, as opposed to mdbook-style guides) looks very different. |
Hi @exzachlyvv ! Welcome to Rust, and welcome to rustdoc. You may be interested in this issue, which recommends some style changes based on accessibility. In particular I notice that both of the fonts you recommend are sans-serif fonts, and the issue I linked (#59829) also recommends sans-serif:
I think that's a pretty strong reason! It would be useful to find some citations for it, though. Is that something you're interested in doing? Also, if we decide to move to a sans-serif font for most documentation text, one option is Fira Sans, which we already use for headings. I'm not well equipped to evaluate Fira Sans vs Nunito or Montserrat, but if you could provide some description of why the latter two might be more readable, that would be awesome. |
That issue does a much better job of describing my feelings :D I'll follow that. Thanks for the responses!! I'm loving Rust 😎 |
As a newcomer to Rust, the docs.rs content is 💯 but the UI is lacking in my opinion. Let's make the documentation easier to digest! :D
Here are a few of the improvements I'm thinking of:
I would be happy to submit a PR for this. Just want to check on the current state before doing so :)
The text was updated successfully, but these errors were encountered: