Skip to content

Commit

Permalink
[docs] readthedocs.yaml and remove requirements-rtd.txt (#16482)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardliaw authored Jun 17, 2021
1 parent 8d9a41a commit c9537be
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 18 deletions.
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/source/conf.py

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: doc/requirements-doc.txt
1 change: 0 additions & 1 deletion ci/travis/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ install_dependencies() {
if [ "${OSTYPE}" = msys ] && [ "${python_version}" = "3.8" ]; then
{ echo "WARNING: Pillow binaries not available on Windows; cannot build docs"; } 2> /dev/null
else
pip install --use-deprecated=legacy-resolver -r "${WORKSPACE_DIR}"/doc/requirements-rtd.txt
pip install --use-deprecated=legacy-resolver -r "${WORKSPACE_DIR}"/doc/requirements-doc.txt
fi
fi
Expand Down
15 changes: 10 additions & 5 deletions doc/requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
alabaster>=0.7,<0.8,!=0.7.5
click
colorama
colorful
commonmark==0.8.1
docutils==0.15
filelock
flask
flatbuffers
fastapi
jsonschema
mock
mock==1.0.1
numpy
opencv-python-headless==4.3.0.36
pandas
pickle5
pillow
pillow==7.2.0
pydantic
pygments
Pygments==2.3.1
pyyaml
recommonmark
readthedocs-sphinx-ext<1.1
recommonmark==0.5.0
redis
setuptools==41.0.1
sphinx==3.0.4
sphinx-click
sphinx-copybutton
Expand All @@ -25,7 +30,7 @@ sphinx-gallery
sphinx-jsonschema
sphinx-tabs
sphinx-version-warning
sphinx-book-theme
sphinx-book-theme==0.0.42
sphinxcontrib.yt
starlette
tabulate
Expand Down
11 changes: 0 additions & 11 deletions doc/requirements-rtd.txt

This file was deleted.

9 changes: 8 additions & 1 deletion doc/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,21 @@ correctly. `Sphinx <https://sphinx-doc.org/>`_ is used to generate the documentat
.. code-block:: shell
cd doc
conda create -n ray-docs pip python=3.7 # optional, but very useful.
pip install -r requirements-doc.txt
pip install -U -r requirements-rtd.txt # important for reproducing the deployment environment
make html
Once done, the docs will be in ``doc/_build/html``. For example, on Mac
OSX, you can open the docs (assuming you are still in the ``doc``
directory) using ``open _build/html/index.html``.

All pull requests will also build a copy of the documentation as part of the CI.
A successful build will have the following check on the build matrix:

.. code-block:: shell
docs/readthedocs.org:ray — Read the Docs build succeeded!
Using a local repository for dependencies
-----------------------------------------
Expand Down

0 comments on commit c9537be

Please sign in to comment.