Skip to content

Commit f1078bd

Browse files
committed
Enable parallel reading if requested, even if there are few documents
1 parent 334e69f commit f1078bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/builders/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def read(self) -> list[str]:
428428
self.events.emit('env-before-read-docs', self.env, docnames)
429429

430430
# check if we should do parallel or serial read
431-
if parallel_available and len(docnames) > 5 and self.app.parallel > 1:
431+
if parallel_available and len(docnames) > 1 and self.app.parallel > 1:
432432
par_ok = self.app.is_parallel_allowed('read')
433433
else:
434434
par_ok = False

0 commit comments

Comments
 (0)