Browse Source

Help: Add context to titles in QtHelp.

This allows disambiguation of identifiers in Qt Assistant and Creator.
Stephen Kelly 11 years ago
parent
commit
d107949d21
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Utilities/Sphinx/templates/layout.html

+ 6 - 0
Utilities/Sphinx/templates/layout.html

@@ -11,3 +11,9 @@
     <a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}
   </li>
 {% 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>{{ title|striptags|e }} {{ "&mdash;"|safe }} {{ docstitle|e }}</title>
+{% endblock %}