@@ -522,8 +522,6 @@ pub struct HtmlConfig {
522522 pub mathjax_support : bool ,
523523 /// Whether to fonts.css and respective font files to the output directory.
524524 pub copy_fonts : bool ,
525- /// An optional google analytics code.
526- pub google_analytics : Option < String > ,
527525 /// Additional CSS stylesheets to include in the rendered page's `<head>`.
528526 pub additional_css : Vec < PathBuf > ,
529527 /// Additional JS scripts to include at the bottom of the rendered page's
@@ -587,7 +585,6 @@ impl Default for HtmlConfig {
587585 curly_quotes : false ,
588586 mathjax_support : false ,
589587 copy_fonts : true ,
590- google_analytics : None ,
591588 additional_css : Vec :: new ( ) ,
592589 additional_js : Vec :: new ( ) ,
593590 fold : Fold :: default ( ) ,
@@ -804,7 +801,6 @@ mod tests {
804801 theme = "./themedir"
805802 default-theme = "rust"
806803 smart-punctuation = true
807- google-analytics = "123456"
808804 additional-css = ["./foo/bar/baz.css"]
809805 git-repository-url = "https://foo.com/"
810806 git-repository-icon = "fa-code-fork"
@@ -850,7 +846,6 @@ mod tests {
850846 } ;
851847 let html_should_be = HtmlConfig {
852848 smart_punctuation : true ,
853- google_analytics : Some ( String :: from ( "123456" ) ) ,
854849 additional_css : vec ! [ PathBuf :: from( "./foo/bar/baz.css" ) ] ,
855850 theme : Some ( PathBuf :: from ( "./themedir" ) ) ,
856851 default_theme : Some ( String :: from ( "rust" ) ) ,
@@ -1014,7 +1009,6 @@ mod tests {
10141009 destination = "my-book" # the output files will be generated in `root/my-book` instead of `root/book`
10151010 theme = "my-theme"
10161011 smart-punctuation = true
1017- google-analytics = "123456"
10181012 additional-css = ["custom.css", "custom2.css"]
10191013 additional-js = ["custom.js"]
10201014 "# ;
@@ -1039,7 +1033,6 @@ mod tests {
10391033 let html_should_be = HtmlConfig {
10401034 theme : Some ( PathBuf :: from ( "my-theme" ) ) ,
10411035 smart_punctuation : true ,
1042- google_analytics : Some ( String :: from ( "123456" ) ) ,
10431036 additional_css : vec ! [ PathBuf :: from( "custom.css" ) , PathBuf :: from( "custom2.css" ) ] ,
10441037 additional_js : vec ! [ PathBuf :: from( "custom.js" ) ] ,
10451038 ..Default :: default ( )
0 commit comments