diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index 8b1968e423a6aadebbb9833444acbab89f7c8c51..93f3089f1725362d343165ba3f174a0fdac4c020 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: