-
Notifications
You must be signed in to change notification settings - Fork 212
Monospace fonts are broken again #992
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
Comments
According to #981 (comment), that PR should've been reverted, no? (I can't find the revert actually.) |
It was reverted in prod but not in the code. The PR was redeployed after #987. |
Well something is very broken currently. It seems that EDIT: Apparently https://github.com/rust-lang/docs.rs/blob/master/vendor/pure-css/css/pure-min.css ships their own normalize.css which is the problem. These vendored css should get included first, followed by rustdoc.css, and finally style.css. |
I really wish we hadn't combined our own styles into the rest of the vendored styles 🤦 |
Possible solution approach: Extract vendored css (purecss and fontawesome) into a separate file and use the following css order:
EDIT: I could try implementing this, if it's something we'd like to try. |
@cynecx are you interested in making a PR for that? The relevant code is https://github.com/rust-lang/docs.rs/blob/master/templates/base.html |
@jyn514 Sure. I'll try. |
Oh, one question tho. It seems that purecss already contains a version of normalize.css. Should we just keep that with the one from rustdoc? Or remove the normalize.css from rustdoc? |
We can't change rustdoc styles. Ideally we would get rid of the one in purecss, but I don't know how to do that cleanly. |
Hmm ... I guess that would work, but then our styles are out of sync with rustdoc if it changes the version of |
@jyn514 Well we could just keep both for now and do the removal in a future PR. Does that sound okay? |
Mostly likely by #981.
https://docs.rs/pulldown-cmark/0.7.2/pulldown_cmark/struct.Parser.html#method.new_with_broken_link_callback

Before:
Currently (but system-dependent):
The culprit is
style.css
, which, now that all CSS is in one file, is not particularly helpful.cc @Kixiron
The text was updated successfully, but these errors were encountered: