Skip to content

Commit 86388fc

Browse files
committed
Add sphinx_rtd_theme option
1 parent d84092f commit 86388fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

user_manual/source/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@
5252
# The theme to use for HTML and HTML Help pages. See the documentation for
5353
# a list of builtin themes.
5454
#
55-
html_theme = 'alabaster'
55+
if os.environ.get('USE_SPHINX_RTD_THEME'):
56+
import sphinx_rtd_theme
57+
html_theme = "sphinx_rtd_theme"
58+
html_theme_path = sphinx_rtd_theme.get_html_theme_path()
59+
else:
60+
html_theme = 'alabaster'
61+
5662

5763
# Add any paths that contain custom static files (such as style sheets) here,
5864
# relative to this directory. They are copied after the builtin static files,

0 commit comments

Comments
 (0)