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"),