Skip to content

Commit

Permalink
1.3.1 readthedocs sphinx compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ward committed Apr 27, 2015
1 parent d285362 commit e5f88be
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/conf.py
Expand Up @@ -12,9 +12,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

#import sys
#import os
#import shlex
import sys
import os
import shlex

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -112,6 +112,14 @@
# a list of builtin themes.
html_theme = 'alabaster'

# 1.3.1 sphinx READTHEDOCS build compat
# SEE:
# https://github.com/shabda/pysaml2/commit/d55bfeebe
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd: # only import and set the theme if we're building docs locally
html_theme = 'sphinx_rtd_theme'

# 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
# documentation.
Expand Down

0 comments on commit e5f88be

Please sign in to comment.