[Python-checkins] r62617 - doctools/trunk/sphinx/htmlhelp.py
georg.brandl
python-checkins at python.org
Thu May 1 20:51:07 CEST 2008
Author: georg.brandl
Date: Thu May 1 20:51:07 2008
New Revision: 62617
Log:
Don't write modindex in html help index file if it's disabled.
Modified:
doctools/trunk/sphinx/htmlhelp.py
Modified: doctools/trunk/sphinx/htmlhelp.py
==============================================================================
--- doctools/trunk/sphinx/htmlhelp.py (original)
+++ doctools/trunk/sphinx/htmlhelp.py Thu May 1 20:51:07 2008
@@ -147,7 +147,8 @@
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):
More information about the Python-checkins
mailing list