10000 Update adding of google analytics key for docs · melissawm/matplotlib@c3016b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3016b9

Browse files
ksundenmelissawm
authored andcommitted
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.
1 parent 5d8305e commit c3016b9
Copy full SHA for c3016b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def js_tag_with_cache_busting(js):
407407
}
408408
include_analytics = is_release_build
409409
if include_analytics:
410-
html_theme_options["google_analytics_id"] = "UA-55954603-1"
410+
html_theme_options["analytics"] = {"google_analytics_id": "UA-55954603-1"}
411411

412412
# Add any paths that contain custom static files (such as style sheets) here,
413413
# relative to this directory. They are copied after the builtin static files,

0 commit comments

Comments
 (0)
0