Author: cito
Date: Sat Feb  6 15:23:33 2016
New Revision: 827

Log:
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.

Modified:
   branches/4.x/docs/conf.py
   trunk/docs/conf.py

Modified: branches/4.x/docs/conf.py
==============================================================================
--- branches/4.x/docs/conf.py   Sat Feb  6 14:27:09 2016        (r826)
+++ branches/4.x/docs/conf.py   Sat Feb  6 15:23:33 2016        (r827)
@@ -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

Modified: trunk/docs/conf.py
==============================================================================
--- trunk/docs/conf.py  Sat Feb  6 14:27:09 2016        (r826)
+++ trunk/docs/conf.py  Sat Feb  6 15:23:33 2016        (r827)
@@ -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
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to