diff --git a/docs/requirements.txt b/docs/requirements.txt index c92959e15..10bc25037 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,6 +1,7 @@ sphinx>=1.8 sphinx_rtd_theme recommonmark>=0.6.0 +sphinxcontrib-googleanalytics>=0.4 sphinx-markdown-tables>=0.0.16 sphinx-version-warning markdown>=3.4.1 diff --git a/docs/source/conf.py b/docs/source/conf.py index d2d4c845c..baa69803e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -55,6 +55,7 @@ extensions = [ "sphinx_rtd_theme", "recommonmark", + "sphinxcontrib.googleanalytics", "sphinx_markdown_tables", "versionwarning.extension", ] @@ -81,9 +82,7 @@ # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -html_theme_options = { - "analytics_id": "UA-169426804-1", -} +googleanalytics_id = "UA-169426804-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,