Skip to content

Commit

Permalink
try to set the config dir on readthedocs to a writeable directory.
Browse files Browse the repository at this point in the history
This should mean that sunpy gets installed on RTD properly
  • Loading branch information
Cadair committed Jul 2, 2015
1 parent da5bbdc commit 6508190
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@

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


# -- Read the Docs Setup -----------------------------------------------------
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
os.environ['SUNPY_CONFIGDIR'] = '/home/docs/checkouts/readthedocs.org/user_builds/sunpy/'

# Load all of the global Astropy configuration
from astropy_helpers.sphinx.conf import *

Expand Down

0 comments on commit 6508190

Please sign in to comment.