Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Adds GA to docs

Stefan Krawczyk13b2001559aa
diff --git a/docs/conf.py b/docs/conf.py
index 4c7b77fb..aa3e572d 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -5,6 +5,7 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
+import os
project = "Burr"
copyright = "2024, Elijah ben Izzy, Stefan Krawczyk"
@@ -21,6 +22,10 @@ extensions = [
"sphinx_toolbox.collapse",
]
+if os.getenv("GITHUB_ACTIONS"): # only add googleanalytics if building on GitHub Actions
+ extensions.append("sphinxcontrib.googleanalytics")
+ googleanalytics_id = "G-20Z3J1CR22"
+
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
diff --git a/pyproject.toml b/pyproject.toml
index 80e404fb..08e8080f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -63,6 +63,7 @@ documentation = [
"sphinx-toolbox",
"psycopg2-binary",
"redis",
+ "sphinxcontrib-googleanalytics"
]
tracking-client = [