docs: add google analytics tracking

This commit is contained in:
Marius Vikhammer
2021-04-06 11:56:11 +08:00
parent c13dfb8024
commit 440fab3d6e
3 changed files with 34 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ extensions = ['breathe',
'extensions.html_redirects',
'extensions.toctree_filter',
'extensions.list_filter',
'extensions.google_analytics',
# Note: order is important here, events must
# be registered by one extension before they can be
@@ -358,6 +359,8 @@ html_static_path = ['../_static']
# Output file base name for HTML help builder.
htmlhelp_basename = 'ReadtheDocsTemplatedoc'
google_analytics_id = os.environ['CI_GOOGLE_ANALYTICS_ID']
# -- Options for LaTeX output ---------------------------------------------
latex_template_dir = os.path.join(config_dir, 'latex_templates')