diff --git a/sphinx/builders/__init__.py b/sphinx/builders/__init__.py index 27a3be7a8..3ff5a161c 100644 --- a/sphinx/builders/__init__.py +++ b/sphinx/builders/__init__.py @@ -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)