Add default favicon for documentation
This commit is contained in:
parent
2200fd3c7c
commit
b5d167f58a
4 changed files with 9 additions and 3 deletions
|
@ -793,6 +793,10 @@ fn write_shared(
|
|||
write(cx.dst.join(&format!("rust-logo{}.png", cx.shared.resource_suffix)),
|
||||
static_files::RUST_LOGO)?;
|
||||
}
|
||||
if (*cx.shared).layout.favicon.is_empty() {
|
||||
write(cx.dst.join(&format!("favicon{}.ico", cx.shared.resource_suffix)),
|
||||
static_files::RUST_FAVICON)?;
|
||||
}
|
||||
write(cx.dst.join(&format!("brush{}.svg", cx.shared.resource_suffix)),
|
||||
static_files::BRUSH_SVG)?;
|
||||
write(cx.dst.join(&format!("wheel{}.svg", cx.shared.resource_suffix)),
|
||||
|
@ -1999,8 +2003,6 @@ impl Context {
|
|||
themes.push(PathBuf::from("settings.css"));
|
||||
let mut layout = self.shared.layout.clone();
|
||||
layout.krate = String::new();
|
||||
layout.logo = String::new();
|
||||
layout.favicon = String::new();
|
||||
try_err!(layout::render(&mut w, &layout,
|
||||
&page, &sidebar, &settings,
|
||||
self.shared.css_file_extension.is_some(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue