Skip to content

Commit cec6109

Browse files
committed
Remove deprecated option for google analytics
1 parent eba6250 commit cec6109

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/pydata_sphinx_theme/__init__.py

-12
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,6 @@ def update_config(app, env):
8686

8787
# Add an analytics ID to the site if provided
8888
analytics = theme_options.get("analytics", {})
89-
# deprecated options for Google Analytics
90-
# TODO: deprecate >= v0.12
91-
gid = theme_options.get("google_analytics_id")
92-
if gid:
93-
msg = (
94-
"'google_analytics_id' is deprecated and will be removed in "
95-
"version 0.11, please refer to the documentation "
96-
"and use 'analytics' instead."
97-
)
98-
warnings.warn(msg, DeprecationWarning, stacklevel=2)
99-
analytics.update({"google_analytics_id": gid})
100-
10189
if analytics:
10290
# Plausible analytics
10391
plausible_domain = analytics.get("plausible_analytics_domain")

0 commit comments

Comments
 (0)