-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16835 from mppf/make-docs-incremental
Adjust 'make docs' to do an incremental build Resolves #16826 Note, #16862 / chapel-lang/sphinxcontrib-chapeldomain#45 is required for this change to function properly - but this branch has those changes. This PR adjusts `make docs` to do an incremental sphinx build. For now, the `chpldoc` command always runs, but the scripts only update the source files for `sphinx-build` if they are different. This brings a `make docs` after a minor change to about 10 seconds. Details: * Adjusts `util/config/update-if-different` to include a mode argument (`--update` or `--copy`) and adjusts the existing calls to it to use the `--update` argument. * Added `--copy` mode to `util/config/update-if-different` that will copy all updated source files (recursively) and delete things in the dst directory not present in src. * Does the module docs build steps by first constructing the rst sources in a subdirectory of build/doc/ and then using `update-if-different --copy` from here (so that removed files can be correctly handled) * Updated Makefiles for `make docs` to avoid deleting "build" directory (since we can use it again, incrementally) * Removes a lot of command echoing for this process. One can use `make SHELL='sh -x' docs` to see the commands again. Reviewed by @ben-albrecht and @lydia-duncan - thanks! - [x] full local testing
- Loading branch information
Showing
6 changed files
with
207 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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.