Skip to content

Commit 828d03c

Browse files
authored
Merge pull request raspberrypi#843 from ojeda/svg-logo
rust: docs: use SVG logo
2 parents 140aaa4 + 3972c1f commit 828d03c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rust/Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,15 @@ quiet_cmd_rustdoc = RUSTDOC $(if $(rustdoc_host),H, ) $<
8181
# and then retouch the generated files.
8282
rustdoc: rustdoc-core rustdoc-macros rustdoc-compiler_builtins \
8383
rustdoc-alloc rustdoc-kernel
84-
$(Q)cp $(srctree)/Documentation/images/logo.gif $(objtree)/$(obj)/doc
84+
$(Q)cp $(srctree)/Documentation/images/logo.svg $(objtree)/$(obj)/doc
85+
$(Q)cp $(srctree)/Documentation/images/COPYING-logo $(objtree)/$(obj)/doc
8586
$(Q)find $(objtree)/$(obj)/doc -name '*.html' -type f -print0 | xargs -0 sed -Ei \
86-
-e 's:rust-logo\.svg:logo.gif:g' \
87-
-e 's:rust-logo\.png:logo.gif:g' \
88-
-e 's:favicon\.svg:logo.gif:g' \
87+
-e 's:rust-logo\.svg:logo.svg:g' \
88+
-e 's:rust-logo\.png:logo.svg:g' \
89+
-e 's:favicon\.svg:logo.svg:g' \
8990
-e 's:<link rel="alternate icon" type="image/png" href="[./]*favicon-(16x16|32x32)\.png">::g'
91+
$(Q)echo '.logo-container > img { object-fit: contain; }' \
92+
>> $(objtree)/$(obj)/doc/rustdoc.css
9093

9194
rustdoc-macros: private rustdoc_host = yes
9295
rustdoc-macros: private rustc_target_flags = --crate-type proc-macro \

0 commit comments

Comments
 (0)