@@ -522,8 +522,6 @@ pub struct HtmlConfig {
522
522
pub mathjax_support : bool ,
523
523
/// Whether to fonts.css and respective font files to the output directory.
524
524
pub copy_fonts : bool ,
525
- /// An optional google analytics code.
526
- pub google_analytics : Option < String > ,
527
525
/// Additional CSS stylesheets to include in the rendered page's `<head>`.
528
526
pub additional_css : Vec < PathBuf > ,
529
527
/// Additional JS scripts to include at the bottom of the rendered page's
@@ -587,7 +585,6 @@ impl Default for HtmlConfig {
587
585
curly_quotes : false ,
588
586
mathjax_support : false ,
589
587
copy_fonts : true ,
590
- google_analytics : None ,
591
588
additional_css : Vec :: new ( ) ,
592
589
additional_js : Vec :: new ( ) ,
593
590
fold : Fold :: default ( ) ,
@@ -804,7 +801,6 @@ mod tests {
804
801
theme = "./themedir"
805
802
default-theme = "rust"
806
803
smart-punctuation = true
807
- google-analytics = "123456"
808
804
additional-css = ["./foo/bar/baz.css"]
809
805
git-repository-url = "https://foo.com/"
810
806
git-repository-icon = "fa-code-fork"
@@ -850,7 +846,6 @@ mod tests {
850
846
} ;
851
847
let html_should_be = HtmlConfig {
852
848
smart_punctuation : true ,
853
- google_analytics : Some ( String :: from ( "123456" ) ) ,
854
849
additional_css : vec ! [ PathBuf :: from( "./foo/bar/baz.css" ) ] ,
855
850
theme : Some ( PathBuf :: from ( "./themedir" ) ) ,
856
851
default_theme : Some ( String :: from ( "rust" ) ) ,
@@ -1014,7 +1009,6 @@ mod tests {
1014
1009
destination = "my-book" # the output files will be generated in `root/my-book` instead of `root/book`
1015
1010
theme = "my-theme"
1016
1011
smart-punctuation = true
1017
- google-analytics = "123456"
1018
1012
additional-css = ["custom.css", "custom2.css"]
1019
1013
additional-js = ["custom.js"]
1020
1014
"# ;
@@ -1039,7 +1033,6 @@ mod tests {
1039
1033
let html_should_be = HtmlConfig {
1040
1034
theme : Some ( PathBuf :: from ( "my-theme" ) ) ,
1041
1035
smart_punctuation : true ,
1042
- google_analytics : Some ( String :: from ( "123456" ) ) ,
1043
1036
additional_css : vec ! [ PathBuf :: from( "custom.css" ) , PathBuf :: from( "custom2.css" ) ] ,
1044
1037
additional_js : vec ! [ PathBuf :: from( "custom.js" ) ] ,
1045
1038
..Default :: default ( )
0 commit comments