From 848e71871b0da4fbb73cee84157f169641a7c9b6 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Mon, 8 Jan 2024 03:32:26 +0000 Subject: [PATCH] Allow an arbitrary string in the logo_name option (#213) Co-authored-by: Will Vousden --- alabaster/about.html | 4 +++- docs/customization.rst | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/alabaster/about.html b/alabaster/about.html index dbb4262..fdb90e1 100644 --- a/alabaster/about.html +++ b/alabaster/about.html @@ -1,9 +1,11 @@ {% if theme_logo %}

{{ project }}

+ {% elif theme_logo_name %} +

{{ theme_logo_name }}

{% endif %}

diff --git a/docs/customization.rst b/docs/customization.rst index eeb1deb..fd50d90 100644 --- a/docs/customization.rst +++ b/docs/customization.rst @@ -90,9 +90,9 @@ Settings related to text display, logo, etc. level Sphinx config) will be used in a text header instead. This preserves a link back to your homepage from inner doc pages. -* ``logo_name``: Set to ``true`` to insert your site's ``project`` name - under the logo image as text. Useful if your logo doesn't include the - project name itself. +* ``logo_name``: Set to ``True`` to insert your site's ``project`` name + under the logo image as text, or to any string to include arbitrary text. + Useful if your logo doesn't include the project name itself. * ``logo_text_align``: Which CSS ``text-align`` value to use for logo text (if there is any.) * ``page_width``: CSS width specifier controlling default content/page width.