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~4^2~4^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b26cc2ec0b6ccb5bcbb82e376cf95af8d8bf57c9;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 2fa010c..97cc614 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 `_. -