File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ Subject: [PATCH] fix rtd theme
2
+ ---
3
+ Index: docs/conf.py
4
+ IDEA additional info:
5
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
6
+ <+>UTF-8
7
+ ===================================================================
8
+ diff --git a/docs/conf.py b/docs/conf.py
9
+ --- a/docs/conf.py
10
+ +++ b/docs/conf.py
11
+ @@ -101,19 +101,10 @@
12
+ # The theme to use for HTML and HTML Help pages. See the documentation for
13
+ # a list of builtin themes.
14
+ #
15
+ - on_rtd = os.environ.get("READTHEDOCS", None) == "True"
16
+ -
17
+ - if not on_rtd: # only import and set the theme if we're building docs locally
18
+ - try:
19
+ - import sphinx_rtd_theme
20
+ + import sphinx_rtd_theme
21
+
22
+ - html_theme = "sphinx_rtd_theme"
23
+ - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
24
+ - except:
25
+ - html_theme = "default"
26
+ - html_theme_path = ["."]
27
+ - else:
28
+ - html_theme_path = ["."]
29
+ + html_theme = "sphinx_rtd_theme"
30
+ + html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
31
+
32
+ # Add any paths that contain custom static files (such as style sheets) here,
33
+ # relative to this directory. They are copied after the builtin static files,
You can’t perform that action at this time.
0 commit comments