Skip to content

Commit bfeb949

Browse files
authored
Merge pull request #353 from FoamyGuy/fix_rtd_theme_patch
adding rtd theme patch
2 parents 2904a54 + 92f2b18 commit bfeb949

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

patches/11SEP2023_fix_rtd_theme.patch

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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,

0 commit comments

Comments
 (0)