We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae12343 + 86e10d3 commit fffc1c2Copy full SHA for fffc1c2
doc/conf.py
@@ -19,6 +19,14 @@
19
import nipype
20
import subprocess as sp
21
22
+html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
23
+
24
+# Tell Jinja2 templates the build is running on Read the Docs
25
+if os.environ.get("READTHEDOCS", "") == "True":
26
+ if "html_context" not in globals():
27
+ html_context = {}
28
+ html_context["READTHEDOCS"] = True
29
30
# Disable etelemetry during doc builds
31
os.environ["NIPYPE_NO_ET"] = "1"
32
@@ -132,10 +140,6 @@
132
140
]
133
141
134
142
135
-on_rtd = os.environ.get("READTHEDOCS") == "True"
136
-if on_rtd:
137
- extensions.append("readthedocs_ext.readthedocs")
138
-
139
143
# Add any paths that contain templates here, relative to this directory.
144
templates_path = ["_templates"]
145
0 commit comments