From da0f48ea9254f278686e07d5d658cff11502e5fe Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 29 Oct 2024 20:31:09 +0100 Subject: [PATCH] Revert "docs: fix deprecation of analytics in RTD" This reverts commit 4874428a17eb1976e58ab95f563759c8ed957aa4. We'll stick with RTD-builtin-analytics for now. --- docs/conf.py | 6 ------ docs/requirements.txt | 1 - 2 files changed, 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 8324cb2fd8..7b72d401db 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -313,12 +313,6 @@ def setup(app): ogp_enable_meta_description = True ogp_description_length = 300 -# sphinxcontrib.googleanalytics configuration -if os.environ.get("READTHEDOCS"): - extensions.append("sphinxcontrib.googleanalytics") - googleanalytics_enabled = True - googleanalytics_id = "G-5CGB3QTKF1" - ## RTD sets html_baseurl, ensures we use the correct env for canonical URLs ## Useful to generate correct meta tags for Open Graph ## Refs: https://github.com/readthedocs/readthedocs.org/issues/10226, https://github.com/urllib3/urllib3/pull/3064 diff --git a/docs/requirements.txt b/docs/requirements.txt index b2f08632cf..4319d3279b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,6 +5,5 @@ sphinx-rtd-theme>=0.5.1 sphinx-rtd-dark-mode>=1.3.0 sphinx-tabs>=3.2.0 sphinx>=5.0.2 -sphinxcontrib-googleanalytics>=0.4 sphinxext-opengraph==0.9.1 urllib3==2.2.3