We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3d5ea commit 8b27a29Copy full SHA for 8b27a29
1 file changed
docs/conf.py
@@ -5,6 +5,7 @@
5
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6
from __future__ import annotations
7
8
+import os
9
import sys
10
from pathlib import Path
11
@@ -39,9 +40,10 @@
39
40
"sphinx.ext.autodoc",
41
"sphinx.ext.viewcode",
42
"sphinx.ext.intersphinx",
- "sphinx_build_compatibility.extension",
43
"sphinx_copybutton",
44
]
45
+if os.environ.get("READTHEDOCS") == "True":
46
+ extensions.append("sphinx_build_compatibility.extension")
47
48
# List of patterns, relative to source directory, that match files and
49
# directories to ignore when looking for source files.
0 commit comments