From 04eec49ab0613aeb1aadee821569fe2ff3cc5faa Mon Sep 17 00:00:00 2001
From: Laurie Voss <github@seldo.com>
Date: Thu, 23 Nov 2023 08:49:24 -0800
Subject: [PATCH] A modest 15% speedup on docs build times (#9098)

---
 .readthedocs.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index 8b1968e423..93f3089f17 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -9,6 +9,13 @@ build:
   os: ubuntu-22.04
   tools:
     python: "3.11"
+  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/requirements.txt
+    - cat docs/conf.py
+    - python -m sphinx -T -E -b html -d ./docs/_build/doctrees -D language=en ./docs $READTHEDOCS_OUTPUT/html -j 8
 
 # Build documentation in the "docs/" directory with Sphinx
 sphinx:
-- 
GitLab