@@ -496,6 +496,8 @@ pub struct HtmlConfig {
496496 pub google_analytics : Option < String > ,
497497 /// Additional CSS stylesheets to include in the rendered page's `<head>`.
498498 pub additional_css : Vec < PathBuf > ,
499+ /// Additional theme.
500+ pub additional_theme : Vec < PathBuf > ,
499501 /// Additional JS scripts to include at the bottom of the rendered page's
500502 /// `<body>`.
501503 pub additional_js : Vec < PathBuf > ,
@@ -553,6 +555,7 @@ impl Default for HtmlConfig {
553555 copy_fonts : true ,
554556 google_analytics : None ,
555557 additional_css : Vec :: new ( ) ,
558+ additional_theme : Vec :: new ( ) ,
556559 additional_js : Vec :: new ( ) ,
557560 fold : Fold :: default ( ) ,
558561 playground : Playground :: default ( ) ,
@@ -742,6 +745,7 @@ mod tests {
742745 curly-quotes = true
743746 google-analytics = "123456"
744747 additional-css = ["./foo/bar/baz.css"]
748+ additional-theme = ["foobar"]
745749 git-repository-url = "https://foo.com/"
746750 git-repository-icon = "fa-code-fork"
747751
@@ -788,6 +792,7 @@ mod tests {
788792 curly_quotes : true ,
789793 google_analytics : Some ( String :: from ( "123456" ) ) ,
790794 additional_css : vec ! [ PathBuf :: from( "./foo/bar/baz.css" ) ] ,
795+ additional_theme : vec ! [ PathBuf :: from( "foobar" ) ] ,
791796 theme : Some ( PathBuf :: from ( "./themedir" ) ) ,
792797 default_theme : Some ( String :: from ( "rust" ) ) ,
793798 playground : playground_should_be,
@@ -968,6 +973,7 @@ mod tests {
968973 curly-quotes = true
969974 google-analytics = "123456"
970975 additional-css = ["custom.css", "custom2.css"]
976+ additional-theme = ["foobar"]
971977 additional-js = ["custom.js"]
972978 "# ;
973979
@@ -993,6 +999,7 @@ mod tests {
993999 curly_quotes : true ,
9941000 google_analytics : Some ( String :: from ( "123456" ) ) ,
9951001 additional_css : vec ! [ PathBuf :: from( "custom.css" ) , PathBuf :: from( "custom2.css" ) ] ,
1002+ additional_theme : vec ! [ PathBuf :: from( "foobar" ) ] ,
9961003 additional_js : vec ! [ PathBuf :: from( "custom.js" ) ] ,
9971004 ..Default :: default ( )
9981005 } ;
0 commit comments