-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for google analytics
Signed-off-by: Akshay "XA" Mestry <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Author: Akshay Mestry <[email protected]> | ||
Created on: Wednesday, April 12 2023 | ||
Last updated on: Sunday, February 18 2024 | ||
Last updated on: Saturday, March 02 2024 | ||
This file contains the configuration settings for building the L.E.A.R.N | ||
documentation using Sphinx, a popular Python documentation tool. Sphinx | ||
|
@@ -48,6 +48,7 @@ | |
from __future__ import annotations | ||
|
||
import importlib | ||
import os | ||
import subprocess | ||
import sys | ||
import typing as t | ||
|
@@ -339,6 +340,11 @@ class LearnProject(t.NamedTuple): | |
html_theme = _project.theme | ||
html_title = _project.short_title | ||
html_theme_options = { | ||
"analytics": { | ||
"google_analytics_id": os.environ.get( | ||
"GOOGLE_ANALYTICS_ID", "G-XXXXXXXXXX" | ||
) | ||
}, | ||
"article_header_end": [], | ||
"footer_center": ["theme-version"], | ||
"footer_end": ["last-updated"], | ||
|