Skip to content

Commit 3d07f8a

Browse files
committed
rust: docs: make the logo be contained with the right ratio
This follows what is done for the `.sub-logo-container`. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 1037757 commit 3d07f8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ rustdoc: rustdoc-core rustdoc-macros rustdoc-compiler_builtins \
8787
-e 's:rust-logo\.png:logo.svg:g' \
8888
-e 's:favicon\.svg:logo.svg:g' \
8989
-e 's:<link rel="alternate icon" type="image/png" href="[./]*favicon-(16x16|32x32)\.png">::g'
90+
$(Q)echo '.logo-container > img { object-fit: contain; }' \
91+
>> $(objtree)/$(obj)/doc/rustdoc.css
9092

9193
rustdoc-macros: private rustdoc_host = yes
9294
rustdoc-macros: private rustc_target_flags = --crate-type proc-macro \

0 commit comments

Comments
 (0)