From: Guillaume Pellerin Date: Wed, 22 Oct 2014 10:07:28 +0000 (+0200) Subject: try sphinx rdt theme or fallback to default X-Git-Tag: 0.6~1^2~6^2~20 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3d08f7bc1f874f374cf15d84e4c739c332e0a3fb;p=timeside.git try sphinx rdt theme or fallback to default --- 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 `_. -