-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Doc build for a single doc made much faster, and clean up #24428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2571572
WIP: Major refactoring and clean up, still some problems on building …
datapythonista 83c3b45
building only api pages when needed, based on SPHINX_PATTERN, and not…
datapythonista a5e7ad2
Merge from master
datapythonista 0fda07e
Merge remote-tracking branch 'upstream/master' into single_doc
datapythonista e851cae
WIP simplifying doc build (pending not generate rst files from exclud…
datapythonista fc9c359
Not generating all the api pages or the intersphinx db when a single …
datapythonista 8e1e9e4
Merge remote-tracking branch 'upstream/master' into single_doc
datapythonista ade46e6
Restoring python path env
datapythonista 648da45
Fixing comment with wrong info
datapythonista c489aa6
Removing not needed raw_input
datapythonista 2be1d61
Merging from master
datapythonista 55e47a2
Adding value to --single error message
datapythonista 4406988
Changing num_jobs default value to 0 everywhere, to be consistent
datapythonista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the DocBuilder init, the default is 1. Make them both the same?
What does a value of 0 do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. with
0
I don't pass a-j
value tosphinx-build
, while with1
, I pass-j 1
, which is actually the same (unless sphinx changes its default).It's a bit weird, because the
-j
parameter is supposed to makesphinx-build
run with multiple cores, but it actually doesn't work, and the process takes exactly the same with-j 1
and-j 4
. It could make sense to remove this option, but I guess at some point sphinx will be fixed at some point, so I guess it's worth leaving it.I'm happy setting our default to
0
(use sphinx default),1
, orauto
, just let me know if you have a preference.I address your other comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I think multiple cores speeds things up for me, at least for a full doc build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked it with
time
in Linux, 1 vs 4 cores, it took 17m30s in both cases (with a difference of less than 5 seconds between them). I tried it in the past with a different computer (also Linux) and was the same.