From 099019d948b7748b99779a42562308666411f1ef Mon Sep 17 00:00:00 2001 From: Marko Budisic Date: Wed, 10 Jan 2024 15:17:29 -0500 Subject: [PATCH] theme.conf root_icon and root_icon_alt_text variables interpolated in layout.html This fixes a partial integration of root_icon and adds the new variable root_icon_alt_text --- python_docs_theme/layout.html | 4 ++-- python_docs_theme/theme.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html index 5f893fc..1d5b5ee 100644 --- a/python_docs_theme/layout.html +++ b/python_docs_theme/layout.html @@ -14,7 +14,7 @@

{{ _('Navigation') }}

{%- endfor %} {%- block rootrellink %} -
  • python logo
  • +
  • {{theme_root_icon_alt_text}}
  • {{theme_root_name}}{{ reldelim1 }}
  • @@ -100,7 +100,7 @@

    {{ _('Navigation') }}

    {%- if pagename != "search" and builder != "singlehtml" %} diff --git a/python_docs_theme/theme.conf b/python_docs_theme/theme.conf index 564c9c5..1cefe32 100644 --- a/python_docs_theme/theme.conf +++ b/python_docs_theme/theme.conf @@ -32,4 +32,5 @@ root_name = Python root_url = https://www.python.org/ root_icon = py.svg root_include_title = True +root_icon_alt_text = Python Logo copyright_url =