From a5ec0dac1cede00ea86da3fae88c4e0544972558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Guth?= Date: Tue, 22 Jun 2021 15:11:49 +0200 Subject: [PATCH] Add a config variable for a logo path --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config.rs b/src/config.rs index c384192c..594bc3ab 100644 --- a/src/config.rs +++ b/src/config.rs @@ -417,6 +417,9 @@ pub struct BookConfig { pub multilingual: bool, /// The main language of the book. pub language: Option, + /// A logo to be displayed on top of the navigation bar. The path is relative to the source + /// path + pub logo: Option, } impl Default for BookConfig { @@ -428,6 +431,7 @@ impl Default for BookConfig { src: PathBuf::from("src"), multilingual: false, language: Some(String::from("en")), + logo: None, } } } @@ -761,6 +765,8 @@ mod tests { multilingual: true, src: PathBuf::from("source"), language: Some(String::from("ja")), + // TODO: add a test logo + logo: None, }; let build_should_be = BuildConfig { build_dir: PathBuf::from("outputs"),