mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable parallel reading regardless of the number of documents (#12796)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
3b9aa9cace
commit
78287616b0
@ -96,6 +96,10 @@ Bugs fixed
|
||||
file URL (user-defined base URL of an intersphinx project are left untouched
|
||||
even if they end with double forward slashes).
|
||||
Patch by Bénédikt Tran.
|
||||
* #12796: Enable parallel reading if requested,
|
||||
even if there are fewer than 6 documents.
|
||||
Patch by Matthias Geier.
|
||||
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
@ -428,7 +428,7 @@ class Builder:
|
||||
self.events.emit('env-before-read-docs', self.env, docnames)
|
||||
|
||||
# check if we should do parallel or serial read
|
||||
if parallel_available and len(docnames) > 5 and self.app.parallel > 1:
|
||||
if parallel_available and self.app.parallel > 1:
|
||||
par_ok = self.app.is_parallel_allowed('read')
|
||||
else:
|
||||
par_ok = False
|
||||
|
Loading…
Reference in New Issue
Block a user