Skip to content

Commit

Permalink
customize rtd build (#11797)
Browse files Browse the repository at this point in the history
customize readthedocs config so that we can parallelize the api docs
build
  • Loading branch information
baskaryan authored Oct 14, 2023
1 parent 0d37b4c commit 6e78dac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
pre_build:
commands:
- python -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH
- python -m pip install --upgrade --no-cache-dir pip setuptools
- python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
- python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt
- python docs/api_reference/create_api_rst.py
- cat docs/api_reference/conf.py
- python -m sphinx -T -E -b html -d _build/doctrees -c docs/api_reference docs/api_reference $READTHEDOCS_OUTPUT/html -j auto

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down

0 comments on commit 6e78dac

Please sign in to comment.