From cada7b6ab5bf5027cb15987e0a9bc6ceea5112b3 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 6 Feb 2025 12:00:19 -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 b37cd0c3..b545f286 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -19,3 +19,4 @@ sphinx_rtd_theme>=1.1.1 # reference system #sphinxcontrib-bibtex #sphinxcontrib-napoleon +sphinxcontrib-googleanalytics diff --git a/docs/source/conf.py b/docs/source/conf.py index f5e89332..18b620ab 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -47,9 +47,14 @@ "sphinx_copybutton", "sphinx_design", "sphinx_rtd_theme", + "sphinxcontrib.googleanalytics", "breathe", ] +# Google Analytics +googleanalytics_id = "G-TSZZK2V8V4" +googleanalytics_enabled = True + # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"]