4 ms·
It is readable, but you are right it is terribly formatted with a lot of not-very-important information in huge fonts. I think rustdoc needs quite a lot of wor
by IshKebab 10y ago
It is readable, but you are right it is terribly formatted with a lot of not-very-important information in huge fonts.
I think rustdoc needs quite a lot of work in general. For example it doesn't even give a list of methods at the start of each type's page. Want to know which methods you can call on a `String`? Enjoy scrolling...
https://doc.rust-lang.org/std/string/struct.String.html https://doc.rust-lang.org/std/string/struct.String.html
- vvanders 10y agoThe +/- button will do that for you. It's one of the first things I do once I read the top example.
- steveklabnik 10y agoWe've discussed flipping the defaults; it was decided before I started writing so many docs and examples. Very different today!
- riquito 10y agoMaybe you could add a responsive right bar with the list of methods, visible when the screen is large enough. My 24'' monitor has 30% wasted space right now.
- steveklabnik 10y agoYes, something like this would be very useful too.
- IshKebab 10y agoAh I never noticed that. Yeah that is quite nice but I expect 99% of other people don't notice it either. I definitely think the defaults should have everything except the description at the top collapsed.
- crzwdjk 10y agoWait, that thing is a button? I never knew that. I guess you can tell because when you hover over it, the status bar on your browser says "javascript:void(0)". I feel like this bit of design might just be a little bit too flat.
- steveklabnik 10y ago> I think rustdoc needs quite a lot of work in general. It does. Honestly, it's quite hard to contribute to at the moment. This is going to improve in the very near future; there's a PR in the queue that's the start of the ability to start making it easier. I hope to make it vastly so someday in the future. Always so much work to do...