@@ -496,6 +496,8 @@ pub struct HtmlConfig {
496
496
pub google_analytics : Option < String > ,
497
497
/// Additional CSS stylesheets to include in the rendered page's `<head>`.
498
498
pub additional_css : Vec < PathBuf > ,
499
+ /// Additional theme.
500
+ pub additional_theme : Vec < PathBuf > ,
499
501
/// Additional JS scripts to include at the bottom of the rendered page's
500
502
/// `<body>`.
501
503
pub additional_js : Vec < PathBuf > ,
@@ -553,6 +555,7 @@ impl Default for HtmlConfig {
553
555
copy_fonts : true ,
554
556
google_analytics : None ,
555
557
additional_css : Vec :: new ( ) ,
558
+ additional_theme : Vec :: new ( ) ,
556
559
additional_js : Vec :: new ( ) ,
557
560
fold : Fold :: default ( ) ,
558
561
playground : Playground :: default ( ) ,
@@ -742,6 +745,7 @@ mod tests {
742
745
curly-quotes = true
743
746
google-analytics = "123456"
744
747
additional-css = ["./foo/bar/baz.css"]
748
+ additional-theme = ["foobar"]
745
749
git-repository-url = "https://foo.com/"
746
750
git-repository-icon = "fa-code-fork"
747
751
@@ -788,6 +792,7 @@ mod tests {
788
792
curly_quotes : true ,
789
793
google_analytics : Some ( String :: from ( "123456" ) ) ,
790
794
additional_css : vec ! [ PathBuf :: from( "./foo/bar/baz.css" ) ] ,
795
+ additional_theme : vec ! [ PathBuf :: from( "foobar" ) ] ,
791
796
theme : Some ( PathBuf :: from ( "./themedir" ) ) ,
792
797
default_theme : Some ( String :: from ( "rust" ) ) ,
793
798
playground : playground_should_be,
@@ -968,6 +973,7 @@ mod tests {
968
973
curly-quotes = true
969
974
google-analytics = "123456"
970
975
additional-css = ["custom.css", "custom2.css"]
976
+ additional-theme = ["foobar"]
971
977
additional-js = ["custom.js"]
972
978
"# ;
973
979
@@ -993,6 +999,7 @@ mod tests {
993
999
curly_quotes : true ,
994
1000
google_analytics : Some ( String :: from ( "123456" ) ) ,
995
1001
additional_css : vec ! [ PathBuf :: from( "custom.css" ) , PathBuf :: from( "custom2.css" ) ] ,
1002
+ additional_theme : vec ! [ PathBuf :: from( "foobar" ) ] ,
996
1003
additional_js : vec ! [ PathBuf :: from( "custom.js" ) ] ,
997
1004
..Default :: default ( )
998
1005
} ;
0 commit comments