mirror of https://github.com/mahmoud/boltons.git
fix rtd theme
This commit is contained in:
parent
263652b5b6
commit
f850eb6b4c
|
@ -120,11 +120,10 @@ intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
|
|||
# a list of builtin themes.
|
||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
|
||||
if on_rtd:
|
||||
html_theme = 'default'
|
||||
else: # only import and set the theme if we're building docs locally
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
if not on_rtd: # only import and set the theme if we're building docs locally
|
||||
import sphinx_rtd_theme
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
html_theme_path = ['_themes', sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue