Help: Add context to titles in QtHelp.

This allows disambiguation of identifiers in Qt Assistant and Creator.
This commit is contained in:
Stephen Kelly 2014-06-17 11:26:44 +02:00
parent b5002631c0
commit d107949d21
1 changed files with 6 additions and 0 deletions

View File

@ -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 %}