Skip to content

Commit

Permalink
hmmmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
mondus committed Aug 18, 2017
1 parent c751bc7 commit 7b69ec6
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,17 @@

html_theme = 'jade'
html_theme_path = ['themes']

# Themes
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_path += [sphinx_rtd_theme.get_html_theme_path()]
# # Override default css to get a larger width for local build
# def setup(app):
# #app.add_javascript("custom.js")
# app.add_stylesheet('customtheme.css')
#else:
# # OIf building on RTD then we need to manually override the css to include the theme customisation
#
# html_context = {
# 'css_files': [
# 'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
# 'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
# '_static/customtheme.css',
# ],
# }

# On RTD The custom theme is ignored so we must manually load all css files
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
html_context = {
'css_files': [
'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'_static/customtheme.css',
],
}

# (Optional) Logo. Should be small enough to fit the navbar (ideally 24x24).
# Path should be relative to the ``_static`` files directory.
Expand Down

0 comments on commit 7b69ec6

Please sign in to comment.