From 068d40a71e37a2fdddbc43f747a8be9e9e292ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 9 Feb 2023 17:27:34 +0100 Subject: [PATCH] doc: add cookie consent to generated HTML pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding CSS and JS code for making sure users opt-in to cookies related to Google Analytics. Fixes issue #51604. Signed-off-by: Benjamin Cabé --- doc/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index d1d87853dabc6..3031008ab6369 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -323,7 +323,9 @@ def setup(app): # theme customizations app.add_css_file("css/custom.css") + app.add_css_file("https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css") app.add_js_file("js/dark-mode-toggle.min.mjs", type="module") + app.add_js_file("https://cmp.osano.com/16A0DbT9yDNIaQkvZ/3b49aaa9-15ab-4d47-a8fb-96cc25b5543c/osano.js", priority=-1000) app.add_js_file("https://www.googletagmanager.com/gtag/js?id=UA-831873-47") app.add_js_file("js/ga-tracker.js")