From 16ba5392de5a63ce1d7d0885fcc6733564f9650c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 6 Feb 2025 10:17:39 -0800 Subject: [PATCH] RTD: Fix GA Integration GA was dropped from RTD in early Oct, 2024. This adds it again. --- docs/requirements.txt | 1 + docs/source/conf.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/requirements.txt b/docs/requirements.txt index 7bb199022..5b15f4dbd 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -15,3 +15,4 @@ sphinx>=2.0 sphinx-copybutton sphinx-design sphinx_rtd_theme>=0.3.1 +sphinxcontrib-googleanalytics diff --git a/docs/source/conf.py b/docs/source/conf.py index 61210e106..50442da34 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -48,9 +48,14 @@ "sphinx_copybutton", "sphinx_design", "sphinx_rtd_theme", + "sphinxcontrib.googleanalytics", "breathe", ] +# Google Analytics +googleanalytics_id = "G-WV5RZSK640" +googleanalytics_enabled = True + # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"]