diff --git a/docs/conf.py b/docs/conf.py index 752efe6b1..1525c4fd7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,7 +67,7 @@ def setup(app): # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinxcontrib.httpdomain', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig'] +extensions = ['sphinxcontrib.httpdomain', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinxcontrib.googleanalytics'] extlinks = { 'issue': ('https://github.com/envoyproxy/envoy-mobile/issues/%s', ''), 'repo': ('https://github.com/envoyproxy/envoy-mobile/blob/{}/%s'.format(blob_sha), ''), @@ -254,3 +254,6 @@ def setup(app): # Output file base name for HTML help builder. htmlhelp_basename = 'envoydoc' + +# Google Analytics tag ID +googleanalytics_id = 'G-DXJEH1ZRXX' diff --git a/docs/requirements.txt b/docs/requirements.txt index e0f0b1c2c..4d697eacf 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -102,6 +102,8 @@ sphinxcontrib-htmlhelp==2.0.0 \ sphinxcontrib-httpdomain==1.8.0 \ --hash=sha256:a3396d6350728d574f52458b400f0ac848f8b6913bd41fed95d391d3ffbbade3 \ --hash=sha256:2059cfabd0cca8fcc3455cc8ffad92f0915a7d3bb03bfddba078a6a0f35beec5 +sphinxcontrib-googleanalytics==0.2.dev20220708 \ + --hash=sha256:2ed8454faf1795393e91ff5a8e21a4c9ebf700a16502b50b15456ad0b672b831 sphinxcontrib-jsmath==1.0.1 \ --hash=sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178 \ --hash=sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8