From 5dc4a9c4c65057d21bd6b206a834296ac542126b Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Sat, 15 Feb 2025 22:18:06 -0500 Subject: [PATCH 1/2] Set up Google Analytics Try to use extension published by sphinx-contrib --- build_requirements.txt | 1 + docs/source/conf.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/build_requirements.txt b/build_requirements.txt index 9f6b1fa45..f2c887c1b 100644 --- a/build_requirements.txt +++ b/build_requirements.txt @@ -3,4 +3,5 @@ furo==2022.6.4.1 myst-parser==0.18.0 sphinx-copybutton==0.5.0 sphinx-design==0.5.0 +sphinxcontrib-googleanalytics=0.4 m2r2==0.3.2 diff --git a/docs/source/conf.py b/docs/source/conf.py index cfc39b7e7..43a1cd7b7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -39,6 +39,7 @@ "sphinx.ext.intersphinx", "sphinx_copybutton", "sphinx_design", + "sphinxcontrib.googleanalytics", "cppkokkos"] # Add any paths that contain templates here, relative to this directory. @@ -72,6 +73,8 @@ '.md': 'markdown', } +googleanalytics_id = 'G-33GFEQPTMT' + myst_heading_anchors = 4 myst_enable_extensions = [ From f13d4e9317f054440890893e18989e810a15e95a Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Mon, 17 Feb 2025 12:05:43 -0700 Subject: [PATCH 2/2] Apply suggestions from code review --- build_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_requirements.txt b/build_requirements.txt index f2c887c1b..e268d3da9 100644 --- a/build_requirements.txt +++ b/build_requirements.txt @@ -3,5 +3,5 @@ furo==2022.6.4.1 myst-parser==0.18.0 sphinx-copybutton==0.5.0 sphinx-design==0.5.0 -sphinxcontrib-googleanalytics=0.4 +sphinxcontrib-googleanalytics==0.4 m2r2==0.3.2