Skip to content

Commit

Permalink
modify theme
Browse files Browse the repository at this point in the history
  • Loading branch information
bithernet committed Jul 28, 2016
1 parent dd50194 commit c032121
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,10 @@
# If true, do not generate a @detailmenu in the "Top" node's menu.
#
# texinfo_no_detailmenu = False

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
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 = [sphinx_rtd_theme.get_html_theme_path()]

0 comments on commit c032121

Please sign in to comment.