Skip to content

Commit

Permalink
feat: add support for google analytics
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay "XA" Mestry <[email protected]>
  • Loading branch information
xames3 committed Mar 2, 2024
1 parent 2361b07 commit fc81e4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -48,6 +48,7 @@
from __future__ import annotations

import importlib
import os
import subprocess
import sys
import typing as t
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit fc81e4b

Please sign in to comment.