Skip to content

Commit

Permalink
fix: alias for google_analytics_id should be set on html.analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed May 28, 2024
1 parent 7c2bb4c commit 7ea0258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_book/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def get_final_config(
color="orange",
print_func=print,
)
sphinx_config['html']['google_analytics_id'] = google_analytics_id
sphinx_config['html'].setdefault("analytics", {})['google_analytics_id'] = google_analytics_id

# finally merge in CLI configuration
_recursive_update(sphinx_config, cli_config or {})
Expand Down

0 comments on commit 7ea0258

Please sign in to comment.