summaryrefslogtreecommitdiff
path: root/sphinx/htmlhelp.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-01 18:51:07 +0000
committerGeorg Brandl <georg@python.org>2008-05-01 18:51:07 +0000
commitb6f8f5d37c8ed554a1764c4b81183c7d24e56951 (patch)
treeada90e8778fae82d8561ff0edbac221828e0913c /sphinx/htmlhelp.py
parentf91b87b14f8448338c6457b4bdb576284cbd14bc (diff)
downloadsphinx-git-b6f8f5d37c8ed554a1764c4b81183c7d24e56951.tar.gz
Don't write modindex in html help index file if it's disabled.
Diffstat (limited to 'sphinx/htmlhelp.py')
-rw-r--r--sphinx/htmlhelp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/htmlhelp.py b/sphinx/htmlhelp.py
index 0742dba98..b3bbd4f63 100644
--- a/sphinx/htmlhelp.py
+++ b/sphinx/htmlhelp.py
@@ -147,7 +147,8 @@ def build_hhx(builder, outdir, outname):
f.write(contents_header)
# special books
f.write('<LI> ' + object_sitemap % ('Main page', 'index.html'))
- f.write('<LI> ' + object_sitemap % ('Global Module Index', 'modindex.html'))
+ if builder.config.html_use_modindex:
+ f.write('<LI> ' + object_sitemap % ('Global Module Index', 'modindex.html'))
# the TOC
toc = builder.env.get_and_resolve_doctree(builder.config.master_doc, builder)
def write_toc(node, ullevel=0):