File tree 7 files changed +67
-5
lines changed
7 files changed +67
-5
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ pub(super) fn write_shared(
240
240
}
241
241
242
242
if ( * cx. shared ) . layout . logo . is_empty ( ) {
243
- write_toolchain ( "rust-logo.png " , static_files:: RUST_LOGO ) ?;
243
+ write_toolchain ( "rust-logo.svg " , static_files:: RUST_LOGO_SVG ) ?;
244
244
}
245
245
if ( * cx. shared ) . layout . favicon . is_empty ( ) {
246
246
write_toolchain ( "favicon.svg" , static_files:: RUST_FAVICON_SVG ) ?;
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ crate static LICENSE_APACHE: &[u8] = include_bytes!("static/LICENSE-APACHE.txt")
67
67
/// The contents of `LICENSE-MIT.txt`, the text of the MIT License.
68
68
crate static LICENSE_MIT : & [ u8 ] = include_bytes ! ( "static/LICENSE-MIT.txt" ) ;
69
69
70
- /// The contents of `rust-logo.png`, the default icon of the documentation.
71
- crate static RUST_LOGO : & [ u8 ] = include_bytes ! ( "static/images/rust-logo.png" ) ;
70
+ /// The contents of `rust-logo.svg`, the default icon of the documentation.
71
+ crate static RUST_LOGO_SVG : & [ u8 ] = include_bytes ! ( "static/images/rust-logo.svg" ) ;
72
+
72
73
/// The default documentation favicons (SVG and PNG fallbacks)
73
74
crate static RUST_FAVICON_SVG : & [ u8 ] = include_bytes ! ( "static/images/favicon.svg" ) ;
74
75
crate static RUST_FAVICON_PNG_16 : & [ u8 ] = include_bytes ! ( "static/images/favicon-16x16.png" ) ;
Original file line number Diff line number Diff line change 79
79
{%- if !layout.logo.is_empty() %}
80
80
< img src ="{{layout.logo}} " alt ="logo "> {#- -#}
81
81
{%- else -%}
82
- < img class ="rust-logo " src ="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.png " alt ="logo "> {#- -#}
82
+ < img class ="rust-logo " src ="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.svg " alt ="logo "> {#- -#}
83
83
{%- endif -%}
84
84
</ div >
85
85
</ a > {#- -#}
92
92
{%- if !layout.logo.is_empty() %}
93
93
< img src ="{{layout.logo}} " alt ="logo "> {#- -#}
94
94
{%- else -%}
95
- < img class ="rust-logo " src ="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.png " alt ="logo "> {#- -#}
95
+ < img class ="rust-logo " src ="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.svg " alt ="logo "> {#- -#}
96
96
{%- endif -%}
97
97
</ a > {#- -#}
98
98
< nav class ="sub "> {#- -#}
You can’t perform that action at this time.
0 commit comments