diff --git a/docsbuild/conf.py b/docsbuild/conf.py index a374f3e..c661401 100644 --- a/docsbuild/conf.py +++ b/docsbuild/conf.py @@ -77,3 +77,15 @@ html_content = { "display_github": "True", } + +# Add templates directory to the templates_path (for extensions and custom templates) +templates_path = [ + "templates", +] + +# -- Adding Umami details to header ---------------------------------------- + +html_context = { + "umami_script_src": "https://umami.52.209.169.249.demo.cloudera-labs.com/script.js", + "umami_website_id": "9fde217e-c791-44f0-aa94-e78bb59394b3", +} diff --git a/docsbuild/templates/layout.html b/docsbuild/templates/layout.html new file mode 100644 index 0000000..ab4eca3 --- /dev/null +++ b/docsbuild/templates/layout.html @@ -0,0 +1,13 @@ +{# _templates/layout.html #} +{% extends "!layout.html" %} {# Extends the theme's default layout.html #} + +{% block extrahead %} + {{ super() }} {# This calls the original extrahead block content from the theme's layout.html #} + + {# Your Umami script #} + {% if umami_script_src and umami_website_id %} + + {% endif %} +{% endblock %} + +{# All other sections of the upstream layout.html are kept as is. #}