summaryrefslogtreecommitdiffstats
path: root/Utilities/Sphinx/templates
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-06-17 09:26:44 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-06-17 09:28:00 (GMT)
commitd107949d213e53521a04f9c29362ca618bbbf8ae (patch)
treeec82e95303f14e95c877f502a4b9ded69b6c4279 /Utilities/Sphinx/templates
parentb5002631c0fedc5ae747fc0450fb4285f977b512 (diff)
downloadCMake-d107949d213e53521a04f9c29362ca618bbbf8ae.zip
CMake-d107949d213e53521a04f9c29362ca618bbbf8ae.tar.gz
CMake-d107949d213e53521a04f9c29362ca618bbbf8ae.tar.bz2
Help: Add context to titles in QtHelp.
This allows disambiguation of identifiers in Qt Assistant and Creator.
Diffstat (limited to 'Utilities/Sphinx/templates')
-rw-r--r--Utilities/Sphinx/templates/layout.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/Sphinx/templates/layout.html b/Utilities/Sphinx/templates/layout.html
index 635ace3..1c5728c 100644
--- a/Utilities/Sphinx/templates/layout.html
+++ b/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 %}