diff options
| author | Jarek Samic <cldfire3@gmail.com> | 2020-09-23 21:31:27 -0400 |
|---|---|---|
| committer | Jarek Samic <cldfire3@gmail.com> | 2020-09-23 21:31:27 -0400 |
| commit | 085679c8414fbcd0a832d57134eb6832ea7a1020 (patch) | |
| tree | ebe21e91af6ba7051485dbd7589e5b26bdfe3489 /src/librustdoc/html/render | |
| parent | c35177582ba22dc7eb3d0d08e972424aed8bd374 (diff) | |
| download | rust-085679c8414fbcd0a832d57134eb6832ea7a1020.tar.gz rust-085679c8414fbcd0a832d57134eb6832ea7a1020.zip | |
Use theme-adaptive SVG favicon from other Rust sites
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index f095f67b54c..8b5ba7a239c 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -754,7 +754,9 @@ fn write_shared( write(cx.path("rust-logo.png"), static_files::RUST_LOGO)?; } if (*cx.shared).layout.favicon.is_empty() { - write(cx.path("favicon.ico"), static_files::RUST_FAVICON)?; + write(cx.path("favicon.svg"), static_files::RUST_FAVICON_SVG)?; + write(cx.path("favicon-16x16.png"), static_files::RUST_FAVICON_PNG_16)?; + write(cx.path("favicon-32x32.png"), static_files::RUST_FAVICON_PNG_32)?; } write(cx.path("brush.svg"), static_files::BRUSH_SVG)?; write(cx.path("wheel.svg"), static_files::WHEEL_SVG)?; |
