Changeset 827


Ignore:
Timestamp:
Feb 6, 2016, 3:23:33 PM (4 years ago)
Author:
cito
Message:

Do not use our custom layout with RTD.

This does not work since RTD overrides layout.html.
Also, we only want the real homepage to have that special look.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/docs/conf.py

    r826 r827  
    1818# Import Cloud theme (this will also automatically add the theme directory).
    1919# Note: We add a navigation bar to the cloud them using a custom layout.
    20 try:
    21     import cloud_sptheme
    22     use_cloud_theme = True
    23 except ImportError:
    24     use_cloud_theme = False
     20if os.environ.get('READTHEDOCS', None) == 'True':
     21    # We cannot use our custom layout her, since RTD overrides layout.html.
     22    use_clouse_theme = False
     23else:
     24    try:
     25        import cloud_sptheme
     26        use_cloud_theme = True
     27    except ImportError:
     28        use_cloud_theme = False
    2529
    2630# If extensions (or modules to document with autodoc) are in another directory,
  • trunk/docs/conf.py

    r826 r827  
    1818# Import Cloud theme (this will also automatically add the theme directory).
    1919# Note: We add a navigation bar to the cloud them using a custom layout.
    20 try:
    21     import cloud_sptheme
    22     use_cloud_theme = True
    23 except ImportError:
    24     use_cloud_theme = False
     20if os.environ.get('READTHEDOCS', None) == 'True':
     21    # We cannot use our custom layout her, since RTD overrides layout.html.
     22    use_clouse_theme = False
     23else:
     24    try:
     25        import cloud_sptheme
     26        use_cloud_theme = True
     27    except ImportError:
     28        use_cloud_theme = False
    2529
    2630# If extensions (or modules to document with autodoc) are in another directory,
Note: See TracChangeset for help on using the changeset viewer.