Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docsbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,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://metrics.cloudera-labs.com/script.js",
"umami_website_id": "ec9cdd83-3798-4fd0-8c07-acb4efd971de",
}
13 changes: 13 additions & 0 deletions docsbuild/templates/layout.html
Original file line number Diff line number Diff line change
@@ -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 %}
<script defer src="{{ umami_script_src }}" data-website-id="{{ umami_website_id }}"></script>
{% endif %}
{% endblock %}

{# All other sections of the upstream layout.html are kept as is. #}
Loading