From a8342bdc8bbc65b95faa45844662f5511a5eccb7 Mon Sep 17 00:00:00 2001 From: aarsh <144159115+Aarshpatel12@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:09:00 +0530 Subject: [PATCH] Fix: Disable Google Analytics on localhost and dev environments (Fixes #51) --- mkdocs.yml | 1 + overrides/main.html | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 overrides/main.html diff --git a/mkdocs.yml b/mkdocs.yml index 7d00a996..aa63bd90 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,7 @@ theme: name: material logo: osipiImgs/OSIPI_logo.png favicon: osipiImgs/OSIPI_logo_only_square.png + custom_dir: overrides palette: # Palette toggle for light mode diff --git a/overrides/main.html b/overrides/main.html new file mode 100644 index 00000000..08916e8a --- /dev/null +++ b/overrides/main.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block analytics %} + + {{ super() }} +{% endblock %} \ No newline at end of file