Use nature Sphinx theme when not on RTD.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/2dbcc74d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/2dbcc74d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/2dbcc74d Branch: refs/heads/trunk Commit: 2dbcc74d14cb7e7c4ff75b229d23b95805838fb7 Parents: 7cef706 Author: Tomaz Muraus <[email protected]> Authored: Sat Aug 3 21:04:40 2013 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Sat Aug 3 21:04:40 2013 +0200 ---------------------------------------------------------------------- docs/conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/2dbcc74d/docs/conf.py ---------------------------------------------------------------------- diff --git a/docs/conf.py b/docs/conf.py index 3b03a61..66355a5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -91,7 +91,12 @@ 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' +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + +if on_rtd: + html_theme = 'default' +else: + html_theme = 'nature' # 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
