Skip to content

Commit

Permalink
Do not use our custom layout with RTD.
Browse files Browse the repository at this point in the history
This does not work since RTD overrides layout.html.
Also, we only want the real homepage to have that special look.
  • Loading branch information
Cito committed Feb 6, 2016
1 parent 544f0b3 commit 83fa760
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@

# Import Cloud theme (this will also automatically add the theme directory).
# Note: We add a navigation bar to the cloud them using a custom layout.
try:
import cloud_sptheme
use_cloud_theme = True
except ImportError:
use_cloud_theme = False
if os.environ.get('READTHEDOCS', None) == 'True':
# We cannot use our custom layout her, since RTD overrides layout.html.
use_clouse_theme = False
else:
try:
import cloud_sptheme
use_cloud_theme = True
except ImportError:
use_cloud_theme = False

# 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

0 comments on commit 83fa760

Please sign in to comment.