Merged in tychoish/sphinx (pull request #145)

fixing issue in parallel builds, sphinx drops second doc
This commit is contained in:
Takayuki Shimizukawa
2013-06-05 13:57:48 +09:00
-1
View File
@@ -352,7 +352,6 @@ class Builder(object):
self.write_doc_serialized(firstname, doctree)
self.write_doc(firstname, doctree)
# for the rest, determine how many documents to write in one go
docnames = docnames[1:]
ndocs = len(docnames)
chunksize = min(ndocs // nproc, 10)
nchunks, rest = divmod(ndocs, chunksize)