Skip to content

Commit

Permalink
pin python deps version for building docs (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxlao authored Aug 9, 2020
1 parent f8dae1e commit 970d9af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ matrix:
# Install Python dependencies for building docs
- which python
- python -V
- pip install -U -q "sphinx>=3.0" sphinx-rtd-theme nbsphinx Pillow
- pip install -U -q "sphinx==3.1.2" "sphinx-rtd-theme==0.5.0" "nbsphinx==0.7.1" "Pillow==7.2.0"
# m2r needs a patch for sphinx 3
# https://github.com/sphinx-doc/sphinx/issues/7420
- pip install -U -q git+https://github.com/intel-isl/m2r@dev#egg=m2r
Expand Down
14 changes: 4 additions & 10 deletions docs/builddocs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,13 @@ First, install a TeX distribution such as `MacTeX <http://www.tug.org/mactex/>`_

.. code-block:: bash
# For pip
pip install "sphinx>=3.0" sphinx-autobuild nbsphinx Pillow
# Install deps
pip install -U "sphinx==3.1.2" "sphinx-rtd-theme==0.5.0" "nbsphinx==0.7.1" "Pillow==7.2.0"
# Or, for Conda
conda install "sphinx>=3.0" sphinx-autobuild nbsphinx Pillow
Install the patched ``m2r`` package for converting ``.md`` to ``.rst``.

.. code-block:: bash
# https://github.com/sphinx-doc/sphinx/issues/7420
# Patched m2r: https://github.com/sphinx-doc/sphinx/issues/7420
pip install -U -q git+https://github.com/intel-isl/m2r@dev#egg=m2r
Build
-----

Expand Down

0 comments on commit 970d9af

Please sign in to comment.