From 5aa4bbcce4cf29710baac7b438492d5bcf2dac0d Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Fri, 18 Nov 2022 00:08:24 -0600 Subject: [PATCH] Update adding of google analytics key for docs Pydata-sphinx-theme actually deprecated the top level config key "google_analytics_id" a few releases ago, though with a standard DeprecationWarning (which is silenced by default) so we did not catch it. The deprecation was expired for 0.12.0, which resulted in a warning (and thus CircleCI reporting failure). For more info see [the pydata-sphinx-theme docs](https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/analytics.html). Essentially, it is simply adding a layer of nesting for the analytics tokens. --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 252b871d67c8..654040c95b1c 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -407,7 +407,7 @@ def js_tag_with_cache_busting(js): } include_analytics = is_release_build if include_analytics: - html_theme_options["google_analytics_id"] = "UA-55954603-1" + html_theme_options["analytics"] = {"google_analytics_id": "UA-55954603-1"} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,