From cd9e85ece94214718257d972e9e5ab4bac3f0e65 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 4 Dec 2013 16:46:56 +0100 Subject: [PATCH] Fixed #21558 -- Support building CHM files. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks MichaƂ Pasternak. --- docs/_theme/djangodocs/layout.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/_theme/djangodocs/layout.html b/docs/_theme/djangodocs/layout.html index fa0b497450..6bb3653084 100644 --- a/docs/_theme/djangodocs/layout.html +++ b/docs/_theme/djangodocs/layout.html @@ -17,6 +17,9 @@ {%- endmacro %} {% block extrahead %} +{# When building htmlhelp (CHM format) disable JQuery inclusion, #} +{# as it causes problems in compiled CHM files. #} +{% if builder != "htmlhelp" %} {{ super() }} +{% endif %} {% endblock %} {% block document %}