Skip to content

Commit fcf4450

Browse files
committed
Try sphinx_rtd_theme
1 parent fcd8086 commit fcf4450

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

doc/conf.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# serve to show the default.
1313

1414
import sys, os
15+
import sphinx_rtd_theme
1516

1617
sys.path.append(os.path.abspath('.'))
1718
sys.path.append(os.path.abspath('_themes'))
@@ -109,19 +110,22 @@
109110

110111
# The theme to use for HTML and HTML Help pages. See the documentation for
111112
# a list of builtin themes.
112-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
113-
if on_rtd:
114-
html_theme = 'default'
115-
else:
116-
html_theme = 'rtd'
113+
# on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
114+
# if on_rtd:
115+
# html_theme = 'default'
116+
# else:
117+
# html_theme = 'rtd'
118+
119+
html_theme = 'sphinx_rtd_theme'
117120

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

123126
# Add any paths that contain custom themes here, relative to this directory.
124-
html_theme_path = ['_themes']
127+
#html_theme_path = ['_themes']
128+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
125129

126130
# from pyramid_sphinx_themes import get_html_themes_path
127131
# html_theme_path = get_html_themes_path()

doc/requirements.pip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ sphinx
44
sphinxcontrib-aafig
55
reportlab
66
sphinx-argparse
7+
-e git+git://github.com/tony/sphinx_rtd_theme@pypi#egg=sphinx_rtd_theme

0 commit comments

Comments
 (0)