File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 2
2
import sphinx .errors
3
3
import sys
4
4
5
+ import sphinx_rtd_theme
6
+
5
7
# Ensure we get the local copy of tornado instead of what's on the standard path
6
8
sys .path .insert (0 , os .path .abspath (".." ))
7
9
import tornado
84
86
85
87
intersphinx_mapping = {"python" : ("https://docs.python.org/3/" , None )}
86
88
87
- on_rtd = os .environ .get ("READTHEDOCS" , None ) == "True"
88
-
89
- # On RTD we can't import sphinx_rtd_theme, but it will be applied by
90
- # default anyway. This block will use the same theme when building locally
91
- # as on RTD.
92
- if not on_rtd :
93
- import sphinx_rtd_theme
94
-
95
- html_theme = "sphinx_rtd_theme"
96
- html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
89
+ html_theme = "sphinx_rtd_theme"
90
+ html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
97
91
98
92
# Suppress warnings about "class reference target not found" for these types.
99
93
# In most cases these types come from type annotations and are for mypy's use.
You can’t perform that action at this time.
0 commit comments