Skip to content

Commit

Permalink
Remove deprecated option for google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Oct 4, 2022
1 parent eba6250 commit cec6109
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/pydata_sphinx_theme/__init__.py
Expand Up @@ -86,18 +86,6 @@ def update_config(app, env):

# Add an analytics ID to the site if provided
analytics = theme_options.get("analytics", {})
# deprecated options for Google Analytics
# TODO: deprecate >= v0.12
gid = theme_options.get("google_analytics_id")
if gid:
msg = (
"'google_analytics_id' is deprecated and will be removed in "
"version 0.11, please refer to the documentation "
"and use 'analytics' instead."
)
warnings.warn(msg, DeprecationWarning, stacklevel=2)
analytics.update({"google_analytics_id": gid})

if analytics:
# Plausible analytics
plausible_domain = analytics.get("plausible_analytics_domain")
Expand Down

0 comments on commit cec6109

Please sign in to comment.