diff options
author | Hynek Schlawack <hs@ox.cx> | 2015-05-28 14:40:11 +0200 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2015-05-28 14:52:50 +0200 |
commit | 76ed8e010af4b413b7c88bc4e67af721c01b6048 (patch) | |
tree | f9a88debe72a678f33c510eb741dae4263d2953e /doc/conf.py | |
parent | 51dc335469f779ba1e3e356163108bb46eaca01c (diff) | |
download | pyopenssl-git-76ed8e010af4b413b7c88bc4e67af721c01b6048.tar.gz |
Use RTD theme
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py index 8277202..5d34ae7 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -121,7 +121,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 = 'classic' +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + +if not on_rtd: # only import and set the theme if we're building docs locally + import sphinx_rtd_theme + html_theme = 'sphinx_rtd_theme' + html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # 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 |