[SPARK-36551][BUILD] Add sphinx-plotly-directive in Spark release Dockerfile
### What changes were proposed in this pull request? After https://github.com/apache/spark/pull/32726, Python doc build requires `sphinx-plotly-directive`. This PR is to install it from `spark-rm/Dockerfile` to make sure `do-release-docker.sh` can run successfully. Also, this PR mentions it in the README of docs. ### Why are the changes needed? Fix release script and update README of docs ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual test locally. Closes #33797 from gengliangwang/fixReleaseDocker. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Gengliang Wang <gengliang@apache.org>
This commit is contained in:
parent
f0775d215e
commit
42eebb84f5
|
@ -42,7 +42,7 @@ ARG APT_INSTALL="apt-get install --no-install-recommends -y"
|
|||
# We should use the latest Sphinx version once this is fixed.
|
||||
# TODO(SPARK-35375): Jinja2 3.0.0+ causes error when building with Sphinx.
|
||||
# See also https://issues.apache.org/jira/browse/SPARK-35375.
|
||||
ARG PIP_PKGS="sphinx==3.0.4 mkdocs==1.1.2 numpy==1.19.4 pydata_sphinx_theme==0.4.1 ipython==7.19.0 nbsphinx==0.8.0 numpydoc==1.1.0 jinja2==2.11.3 twine==3.4.1"
|
||||
ARG PIP_PKGS="sphinx==3.0.4 mkdocs==1.1.2 numpy==1.19.4 pydata_sphinx_theme==0.4.1 ipython==7.19.0 nbsphinx==0.8.0 numpydoc==1.1.0 jinja2==2.11.3 twine==3.4.1 sphinx-plotly-directive==0.1.3"
|
||||
ARG GEM_PKGS="bundler:2.2.9"
|
||||
|
||||
# Install extra needed repos and refresh.
|
||||
|
|
|
@ -73,7 +73,7 @@ See also https://issues.apache.org/jira/browse/SPARK-35375.
|
|||
-->
|
||||
|
||||
```sh
|
||||
$ sudo pip install 'sphinx<3.1.0' mkdocs numpy pydata_sphinx_theme ipython nbsphinx numpydoc 'jinja2<3.0.0'
|
||||
$ sudo pip install 'sphinx<3.1.0' mkdocs numpy pydata_sphinx_theme ipython nbsphinx numpydoc sphinx-plotly-directive 'jinja2<3.0.0'
|
||||
```
|
||||
|
||||
## Generating the Documentation HTML
|
||||
|
|
Loading…
Reference in a new issue