From 6e78dacd784d6d4e9c3a923b97f7f41649e6bb83 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Fri, 13 Oct 2023 19:50:22 -0700 Subject: [PATCH] customize rtd build (#11797) customize readthedocs config so that we can parallelize the api docs build --- .readthedocs.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index ef391bbd6..81cc63947 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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: