Skip to content

Commit

Permalink
Added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Nov 3, 2023
1 parent a432648 commit e1fe042
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphinx/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@ def write(

if self.parallel_ok:
# number of subprocesses is parallel-1 because the main process
# is busy loading doctrees and doing write_doc_serialized()
# is busy loading doctrees and doing write_doc_serialized();
# in case all extension support parallel_post_transform_safe
# the main process does nothing
self._write_parallel(sorted(docnames),
nproc=self.app.parallel - 1)
else:
Expand Down

0 comments on commit e1fe042

Please sign in to comment.