Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add sphinxcontrib-gtagjs in docs (#1790)

Edgar Riba83bd03f7b6ab
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 185ba5ecc..e83797ac3 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -11,6 +11,7 @@ sphinxcontrib-youtube
sphinx-autodoc-typehints>=1.0
sphinx-copybutton>=0.3
sphinx-autodoc-defaultargs
+sphinxcontrib-gtagjs
PyYAML>=5.1,<6.1.0
furo
sphinx-design
diff --git a/docs/source/conf.py b/docs/source/conf.py
index f95ddc4c0..f8e1cc1b9 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -42,6 +42,7 @@ extensions = [
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinxcontrib.bibtex',
+ "sphinxcontrib.gtagjs",
'sphinxcontrib.youtube',
'sphinx_design',
]
@@ -70,6 +71,8 @@ project = 'Kornia'
author = f'{project} developers'
copyright = f'2019, {author}'
+gtagjs_ids = ["UA-203957082-2"]
+
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.