Skip to content

Commit 068d40a

Browse files
committed
doc: add cookie consent to generated HTML pages
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é <[email protected]>
1 parent fce2cad commit 068d40a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@
323323
def setup(app):
324324
# theme customizations
325325
app.add_css_file("css/custom.css")
326+
app.add_css_file("https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css")
326327
app.add_js_file("js/dark-mode-toggle.min.mjs", type="module")
327328

329+
app.add_js_file("https://cmp.osano.com/16A0DbT9yDNIaQkvZ/3b49aaa9-15ab-4d47-a8fb-96cc25b5543c/osano.js", priority=-1000)
328330
app.add_js_file("https://www.googletagmanager.com/gtag/js?id=UA-831873-47")
329331
app.add_js_file("js/ga-tracker.js")

0 commit comments

Comments
 (0)