From: Nicolas Dandrimont Date: Thu, 8 Oct 2015 08:41:10 -0700 Subject: Remove cookies and tracking Forwarded: not-needed Patch-Name: 0003-Remove-cookies-and-tracking.patch --- cloud_sptheme/themes/cloud/layout.html | 30 ---------------------------- cloud_sptheme/themes/cloud/static/cloud.js_t | 6 ------ cloud_sptheme/themes/cloud/theme.conf | 2 +- 3 files changed, 1 insertion(+), 37 deletions(-) --- a/cloud_sptheme/themes/cloud/layout.html +++ b/cloud_sptheme/themes/cloud/layout.html @@ -31,15 +31,11 @@ {{ super() }} {# add script file to instrument collapsable sections and other features #} - {{ compat_js_tag("_static/jquery.cookie.js") }} {{ compat_js_tag("_static/cloud.base.js") }} {{ compat_js_tag("_static/cloud.js") }} {%- endblock %} -{# add font stylesheets #} -{% set css_files = css_files + [theme_fontcssurl] %} - {# make root link redirectable #} {%- set theme_roottarget = (theme_roottarget == "" and master_doc or theme_roottarget) %} {% block rootrellink %} @@ -72,23 +68,6 @@ {% block extrahead -%} {{ super() }} - {%- if theme_googleanalytics_id -%} - - {%- endif %} {%- endblock %} {% block body -%} @@ -121,17 +100,5 @@ {% block footer -%} {{ super() }} - {%- if theme_googleanalytics_id -%} - - {%- endif %} {%- endblock %} --- a/cloud_sptheme/themes/cloud/static/cloud.js_t +++ b/cloud_sptheme/themes/cloud/static/cloud.js_t @@ -240,11 +240,7 @@ var $doc = $('div.document'), $hide = $('button#sidebar-hide'), - $show = $('button#sidebar-show'), - copts = { - // expires: 7, - path: utils.rootpath - }; + $show = $('button#sidebar-show'); // set sidebar state for current media size var lastSmall = false, @@ -262,7 +258,6 @@ } else { largeState = visible; if(!visible) { smallState = false; } - $.cookie("sidebar", visible ? "expanded" : "collapsed", copts); } $window.trigger("cloud-sidebar-toggled", visible); } @@ -280,7 +275,7 @@ if(smallScreen){ setState(false); } else { - var value = $.cookie("sidebar"); + var value = ""; {% if theme_defaultcollapsed | tobool %} if (!value) value = "collapsed"; {% endif %} --- a/cloud_sptheme/themes/cloud/theme.conf +++ b/cloud_sptheme/themes/cloud/theme.conf @@ -183,7 +183,7 @@ # font css url - for loading in fonts (eg google font dir) # should include source for all fonts referenced by "headfont", "bodyfont", and "codeblockfont" -fontcssurl = https://fonts.googleapis.com/css?family=Noticia+Text:400,i,b,bi|Open+Sans:400,i,b,bi|Roboto+Mono:400,i,b,bi&display=swap +fontcssurl = # set google analytics tracker googleanalytics_id =