Skip to content

Commit 4f6598a

Browse files
committed
Set doc to use sphinx theme
1 parent 22fcc81 commit 4f6598a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
# add these directories to sys.path here. If the directory is relative to the
2121
# documentation root, use os.path.abspath to make it absolute, like shown here.
2222
#sys.path.insert(0, os.path.abspath('.'))
23+
sys.path.append(os.path.abspath('ext/sphinx_rtd_theme'))
24+
25+
import sphinx_rtd_theme
2326

2427
# -- General configuration ------------------------------------------------
2528

@@ -112,15 +115,15 @@
112115

113116
# The theme to use for HTML and HTML Help pages. See the documentation for
114117
# a list of builtin themes.
115-
html_theme = 'alabaster'
118+
html_theme = 'sphinx_rtd_theme'
116119

117120
# Theme options are theme-specific and customize the look and feel of a theme
118121
# further. For a list of options available for each theme, see the
119122
# documentation.
120123
#html_theme_options = {}
121124

122125
# Add any paths that contain custom themes here, relative to this directory.
123-
#html_theme_path = []
126+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
124127

125128
# The name for this set of Sphinx documents. If None, it defaults to
126129
# "<project> v<release> documentation".

0 commit comments

Comments
 (0)