]> git.parisson.com Git - timeside.git/commitdiff
try sphinx rdt theme or fallback to default
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 22 Oct 2014 10:07:28 +0000 (12:07 +0200)
committerThomas Fillon <thomas@parisson.com>
Fri, 24 Oct 2014 12:21:36 +0000 (14:21 +0200)
doc/source/conf.py
doc/source/dive_in.rst

index 349d6c359d6e0d02f849da9b652afd9985363ce1..7b7b11628df413752765fb4272036238e237d10e 100644 (file)
@@ -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
index e913dd95a45fa18d5f37ebdd19345df79e3c9ad1..6ed8e54e3290bb1bdd13f1e05abeb470feece495 100644 (file)
@@ -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 <http://files.parisson.com/timeside/doc/>`_.
-