From 3d08f7bc1f874f374cf15d84e4c739c332e0a3fb Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 22 Oct 2014 12:07:28 +0200 Subject: [PATCH] try sphinx rdt theme or fallback to default --- doc/source/conf.py | 10 ++++++---- doc/source/dive_in.rst | 1 - 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 349d6c3..7b7b116 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -112,10 +112,12 @@ modindex_common_prefix = ['timeside.'] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -# html_theme = 'default' -import sphinx_rtd_theme -html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +try: + import sphinx_rtd_theme + html_theme = "sphinx_rtd_theme" + html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +except: + html_theme = 'default' # 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 diff --git a/doc/source/dive_in.rst b/doc/source/dive_in.rst index e913dd9..6ed8e54 100644 --- a/doc/source/dive_in.rst +++ b/doc/source/dive_in.rst @@ -36,4 +36,3 @@ Note you can also instanciate each processor with its own class:: encoder = timeside.encoder.ogg.VorbisEncoder('sweep.ogg') For more extensive examples, please see the `full documentation `_. - -- 2.39.5