summaryrefslogtreecommitdiff
path: root/sandbox/py-rest-doc/sphinx/builder.py
diff options
context:
space:
mode:
authorgbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-06-16 23:19:28 +0000
committergbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-06-16 23:19:28 +0000
commitc3781300589c30ea2e1be03cfdb8c4d6bd004bd0 (patch)
tree5e1b9f9b5ee98249e819c451845044370332215a /sandbox/py-rest-doc/sphinx/builder.py
parent19f5974c859910b1aa83457cc3a0ae2c6d298c2f (diff)
downloaddocutils-c3781300589c30ea2e1be03cfdb8c4d6bd004bd0.tar.gz
Make building the searchindex the default.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5247 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/builder.py')
-rw-r--r--sandbox/py-rest-doc/sphinx/builder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/py-rest-doc/sphinx/builder.py b/sandbox/py-rest-doc/sphinx/builder.py
index e5fd9d8e1..35ba9c59d 100644
--- a/sandbox/py-rest-doc/sphinx/builder.py
+++ b/sandbox/py-rest-doc/sphinx/builder.py
@@ -243,7 +243,7 @@ class StandaloneHTMLBuilder(Builder):
option_spec = Builder.option_spec
option_spec.update({
'nostyle': 'Don\'t copy style and script files',
- 'searchindex': 'Create a JSON search index for offline search',
+ 'nosearchindex': 'Don\'t create a JSON search index for offline search',
})
def init(self):
@@ -283,7 +283,7 @@ class StandaloneHTMLBuilder(Builder):
return source_filename[:-4] + '.html'
def prepare_writing(self):
- if self.options.searchindex:
+ if not self.options.nosearchindex:
from .search import IndexBuilder
self.indexer = IndexBuilder()
else:
@@ -477,7 +477,7 @@ class WebHTMLBuilder(StandaloneHTMLBuilder):
option_spec = Builder.option_spec
option_spec.update({
'nostyle': 'Don\'t copy style and script files',
- 'searchindex': 'Create a search index for the online search',
+ 'nosearchindex': 'Don\'t create a search index for the online search',
})
def init(self):