-
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
Apply rust-logo class only on default logo #91958
Conversation
I feel like having an environment variable would make most sense. Either opt-in or opt-out; I'd personally prefer the latter. That way we don't keep switching back and forth. |
I fixed the missing @jhpratt said:
I don't understand this comment. |
With my second commit, I realized that we didn't have a test to ensure that the image in the |
Also replace ' with " in rustdoc template
Awesome, thanks! r=me once CI pass |
If we used an environment variable to control whether the outline is present, then it would be fully under control of the crate. If I remember correctly, whether the outline applies to every logo has gone back and forth a few times. Personally I would like to have it for my crates, but others (such as you) don't. So why not make it configurable? 🤷♂️ |
You can instead use |
Certainly. But for common things, which I imagine this is, configuration makes sense imo. |
I don't know the full history here, but at least the most recent change here was an unintentional bug, not a design choice, which is what I'm trying to fix. I'm not aware of a time when outlining was intentionally applied to non-default logos. |
@jhpratt I don't think having such things handled by environment variables will be any better. Also, it was overwhelmingly in favor of not changing the display of the logos provided by users. Use the existing options. @jsha I can't find the link but in short it was something I think to have a "border" applied on all logos to make them look "good" whatever the theme. |
@bors r=GuillaumeGomez rollup |
📌 Commit 246de45 has been approved by |
Apply rust-logo class only on default logo Fixes rust-lang#91653. ![image](https://user-images.githubusercontent.com/220205/146138145-a7a62ea6-3205-4bc7-8460-e985284d93ea.png) Demo: https://rustdoc.crud.net/jsha/hashes/sha2/ r? `@GuillaumeGomez`
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#91901 (Remove `in_band_lifetimes` from `rustc_symbol_mangling`) - rust-lang#91904 (Remove `in_band_lifetimes` from `rustc_trait_selection`) - rust-lang#91951 (update stdarch) - rust-lang#91958 (Apply rust-logo class only on default logo) - rust-lang#91972 (link to pref_align_of tracking issue) - rust-lang#91986 (Bump compiler-builtins to 0.1.66) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #91653.
Demo: https://rustdoc.crud.net/jsha/hashes/sha2/
r? @GuillaumeGomez