Skip to content

Commit

Permalink
Another fix for imgmath...
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Oct 11, 2016
1 parent 482cfa9 commit ef81aad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
import setup as _setup

# Mock out certain modules while building documentation
Expand Down Expand Up @@ -105,9 +106,16 @@ def __getattr__(cls, name):

# -- Options for HTML output ----------------------------------------------

html_theme = 'default'
#html_theme_options = {}
#html_theme_path = []
if on_rtd:
html_theme = 'sphinx_rtd_theme'
#html_theme_options = {}
#html_theme_path = []
#html_sidebars = {}
else:
html_theme = 'default'
#html_theme_options = {}
#html_theme_path = []
#html_sidebars = {}
#html_title = None
#html_short_title = None
#html_logo = None
Expand All @@ -116,7 +124,6 @@ def __getattr__(cls, name):
#html_extra_path = []
#html_last_updated_fmt = '%b %d, %Y'
#html_use_smartypants = True
#html_sidebars = {}
#html_additional_pages = {}
#html_domain_indices = True
#html_use_index = True
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
'array': ['numpy'],
}

if os.environ.get('READTHEDOCS', None) == 'True':
# If we're running on RTD, force a newer sphinx version to be installed
__requires__.append('sphinx>=1.4.3')

if sys.version_info[:2] == (3, 2):
__extra_requires__['doc'].extend([
# Particular versions are required for Python 3.2 compatibility. The
Expand Down

0 comments on commit ef81aad

Please sign in to comment.