Skip to content

Commit

Permalink
myo.utils.platform now doesn't raise EnvironmentError when building f…
Browse files Browse the repository at this point in the history
…or READTHEDOCS
  • Loading branch information
NiklasRosenstein committed Jan 4, 2016
1 parent 05007e9 commit 6fe6776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'alabaster'
if os.environ.get('READTHEDOCS') == 'True':
html_theme = 'default'
else:
html_theme = 'alabaster'

# 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
3 changes: 3 additions & 0 deletions myo/utils/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def select():
result = 'Windows (Cygwin)'
elif platform.startswith('darwin'):
result = 'Darwin'
elif os.environ.get('READTHEDOCS') == 'True':
print('@@@ myo.utils.platform: READTHEDOCS: allowing platform {0!r} for building'.format(platform))
result = 'Linux'
else:
raise EnvironmentError('unsupported platform %s' % platform)

Expand Down

0 comments on commit 6fe6776

Please sign in to comment.