cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seb...@apache.org
Subject git commit: updated the conf file so the theme is the same when you build locally as it is online: This closes #14
Date Wed, 28 May 2014 06:46:34 GMT
Repository: cloudstack-docs-admin
Updated Branches:
  refs/heads/master cc7927c48 -> 0893ba93a


updated the conf file so the theme is the same when you build locally as it is online: This
closes #14

Signed-off-by: Sebastien Goasguen <runseb@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/commit/0893ba93
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/tree/0893ba93
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/diff/0893ba93

Branch: refs/heads/master
Commit: 0893ba93a39caec27c5f393323d7c184736bce78
Parents: cc7927c
Author: Will Stevens <wstevens@cloudops.com>
Authored: Tue May 27 16:47:49 2014 -0400
Committer: Sebastien Goasguen <runseb@gmail.com>
Committed: Wed May 28 08:46:06 2014 +0200

----------------------------------------------------------------------
 source/conf.py | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/blob/0893ba93/source/conf.py
----------------------------------------------------------------------
diff --git a/source/conf.py b/source/conf.py
index 517956a..b181590 100644
--- a/source/conf.py
+++ b/source/conf.py
@@ -17,6 +17,8 @@
 import sys
 import os
 
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
 # 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
 # documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -105,6 +107,13 @@ pygments_style = 'sphinx'
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 html_theme = 'default'
+if not on_rtd:
+    try:
+        import sphinx_rtd_theme
+        html_theme = 'sphinx_rtd_theme'
+        html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+    except ImportError:
+        pass
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the


Mime
View raw message