From d107949d213e53521a04f9c29362ca618bbbf8ae Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 17 Jun 2014 11:26:44 +0200 Subject: [PATCH] Help: Add context to titles in QtHelp. This allows disambiguation of identifiers in Qt Assistant and Creator. --- Utilities/Sphinx/templates/layout.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utilities/Sphinx/templates/layout.html b/Utilities/Sphinx/templates/layout.html index 635ace3227..1c5728c704 100644 --- a/Utilities/Sphinx/templates/layout.html +++ b/Utilities/Sphinx/templates/layout.html @@ -11,3 +11,9 @@ {{ shorttitle|e }}{{ reldelim1 }} {% endblock %} + +{# Put some context in the html title element. Workaround for #} +{# https://bitbucket.org/birkenfeld/sphinx/issue/1492/qthelp-generate-html-title-element-should #} +{% block htmltitle %} + {{ title|striptags|e }} {{ "—"|safe }} {{ docstitle|e }} +{% endblock %}