Skip to content

Commit

Permalink
Documentation configuration file update.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysmelter committed Nov 8, 2017
1 parent 7e3c256 commit 22a9cff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'nbsphinx']
'nbsphinx'
]

intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}

Expand Down Expand Up @@ -116,12 +117,13 @@
# html_theme = 'default'

# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
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()]
# otherwise, readthedocs.org uses their theme by default, so no need to specify it


# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down

0 comments on commit 22a9cff

Please sign in to comment.