@@ -528,8 +528,6 @@ pub struct HtmlConfig {
528528 pub mathjax_support : bool ,
529529 /// Whether to fonts.css and respective font files to the output directory.
530530 pub copy_fonts : bool ,
531- /// An optional google analytics code.
532- pub google_analytics : Option < String > ,
533531 /// Additional CSS stylesheets to include in the rendered page's `<head>`.
534532 pub additional_css : Vec < PathBuf > ,
535533 /// Additional JS scripts to include at the bottom of the rendered page's
@@ -593,7 +591,6 @@ impl Default for HtmlConfig {
593591 curly_quotes : false ,
594592 mathjax_support : false ,
595593 copy_fonts : true ,
596- google_analytics : None ,
597594 additional_css : Vec :: new ( ) ,
598595 additional_js : Vec :: new ( ) ,
599596 fold : Fold :: default ( ) ,
@@ -811,7 +808,6 @@ mod tests {
811808 theme = "./themedir"
812809 default-theme = "rust"
813810 smart-punctuation = true
814- google-analytics = "123456"
815811 additional-css = ["./foo/bar/baz.css"]
816812 git-repository-url = "https://foo.com/"
817813 git-repository-icon = "fa-code-fork"
@@ -858,7 +854,6 @@ mod tests {
858854 } ;
859855 let html_should_be = HtmlConfig {
860856 smart_punctuation : true ,
861- google_analytics : Some ( String :: from ( "123456" ) ) ,
862857 additional_css : vec ! [ PathBuf :: from( "./foo/bar/baz.css" ) ] ,
863858 theme : Some ( PathBuf :: from ( "./themedir" ) ) ,
864859 default_theme : Some ( String :: from ( "rust" ) ) ,
@@ -1022,7 +1017,6 @@ mod tests {
10221017 destination = "my-book" # the output files will be generated in `root/my-book` instead of `root/book`
10231018 theme = "my-theme"
10241019 smart-punctuation = true
1025- google-analytics = "123456"
10261020 additional-css = ["custom.css", "custom2.css"]
10271021 additional-js = ["custom.js"]
10281022 "# ;
@@ -1047,7 +1041,6 @@ mod tests {
10471041 let html_should_be = HtmlConfig {
10481042 theme : Some ( PathBuf :: from ( "my-theme" ) ) ,
10491043 smart_punctuation : true ,
1050- google_analytics : Some ( String :: from ( "123456" ) ) ,
10511044 additional_css : vec ! [ PathBuf :: from( "custom.css" ) , PathBuf :: from( "custom2.css" ) ] ,
10521045 additional_js : vec ! [ PathBuf :: from( "custom.js" ) ] ,
10531046 ..Default :: default ( )
0 commit comments