Skip to content

Commit

Permalink
Revert "docs: fix deprecation of analytics in RTD"
Browse files Browse the repository at this point in the history
This reverts commit 4874428.

We'll stick with RTD-builtin-analytics for now.
  • Loading branch information
wolfgangwalther committed Oct 29, 2024
1 parent afa63f8 commit da0f48e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit da0f48e

Please sign in to comment.