docs/conf.py

changeset 89
8310b682c916
parent 81
26ba013a14a7
child 123
ed1e3bfbda6e
--- a/docs/conf.py	Mon Dec 05 13:20:17 2016 +0200
+++ b/docs/conf.py	Mon Dec 05 13:25:30 2016 +0200
@@ -13,6 +13,13 @@
 
 import sys, os
 
+try:
+    import sphinx_bootstrap_theme
+    bootstrap_loaded = True
+except:
+    bootstrap_loaded = False
+    
+
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -41,7 +48,7 @@
 
 # General information about the project.
 project = u'Single Calculus Chain'
-copyright = u'2016, Ioannis Binietoglou'
+copyright = u"2016, Ioannis Binietoglou, Giuseppe D'Amico"
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -91,7 +98,10 @@
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'default'
+if bootstrap_loaded:
+    html_theme = 'bootstrap'
+else:
+    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
@@ -99,7 +109,8 @@
 #html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
+if bootstrap_loaded:
+    html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".

mercurial