[Python-checkins] r61736 - doctools/trunk/sphinx/builder.py
georg.brandl
python-checkins at python.org
Sat Mar 22 11:59:26 CET 2008
Author: georg.brandl
Date: Sat Mar 22 11:59:26 2008
New Revision: 61736
Modified:
doctools/trunk/sphinx/builder.py
Log:
Only create the index in the HTML builder.
Modified: doctools/trunk/sphinx/builder.py
==============================================================================
--- doctools/trunk/sphinx/builder.py (original)
+++ doctools/trunk/sphinx/builder.py Sat Mar 22 11:59:26 2008
@@ -45,6 +45,9 @@
Builds target formats from the reST sources.
"""
+ # builder's name, for the -b command line options
+ name = ''
+
def __init__(self, app, env=None, freshenv=False):
self.srcdir = app.srcdir
self.outdir = app.outdir
@@ -231,8 +234,6 @@
docnames.add(tocdocname)
docnames.add(self.config.master_doc)
- self.info(bold('creating index...'))
- self.env.create_index(self)
self.prepare_writing(docnames)
# write target files
@@ -293,6 +294,10 @@
def prepare_writing(self, docnames):
from sphinx.search import IndexBuilder
+
+ self.info(bold('creating index...'))
+ self.env.create_index(self)
+
self.indexer = IndexBuilder()
self.load_indexer(docnames)
self.docwriter = HTMLWriter(self)
More information about the Python-checkins
mailing list