Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46825][DOCS] Build Spark only once when building docs
### What changes were proposed in this pull request? As [suggested here][1], this change improves the documentation build so that it builds Spark at most one time, regardless of what API docs are requested in the build. [1]: #44791 (comment) ### Why are the changes needed? There is no need to build Spark multiple times when generating docs. In particular, building Scala and Python docs, or Scala and SQL docs, causes Spark to be built twice. Fixing this problem saves us a couple of minutes. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? I built the docs as follows on `master` as well as on this branch: ```sh time SKIP_RDOC=1 SKIP_PYTHONDOC=1 bundle exec jekyll build ``` The time results before and after this change are as follows: ``` before ------ real 6m48.815s user 23m17.943s sys 1m29.578s after ----- real 4m10.672s user 14m10.130s sys 1m0.773s ``` That's a savings of about 2.5 minutes. Additionally, I diffed the generated `_site/` dir across `master` and this branch and confirmed they are essentially identical except for some general SQL examples files. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #44865 from nchammas/SPARK-46825-jekyll-build-spark-once. Authored-by: Nicholas Chammas <nicholas.chammas@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
- Loading branch information