Skip to content

Commit

Permalink
Fix building docs on RTD.
Browse files Browse the repository at this point in the history
pandoc was broken by lack of HOME; just set one to keep it happy.
  • Loading branch information
dopplershift committed Jun 24, 2015
1 parent 5aac75c commit a085cf5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('.'))

#
# Read the docs fix
# On read the docs, there is no $HOME now, which breaks pandoc. Set one,
# which is unused, so that pandoc will run
#

if 'READTHEDOCS' in os.environ and not 'HOME' in os.environ:
os.environ['HOME'] = '/home/docs' # Not sure what else to use

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit a085cf5

Please sign in to comment.