Updated git submodules
[docs.git] / docs / conf.py
index 6c13c61e4ba910de68ce8841d61e49d8d4392331..2f240cce467f93fd6d23d3f4735fa22c1926ebda 100644 (file)
@@ -20,7 +20,7 @@ import sphinx_bootstrap_theme
 # 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.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('submodules/spectrometer/server'))
 
 # -- General configuration ------------------------------------------------
 
@@ -30,15 +30,17 @@ import sphinx_bootstrap_theme
 # Add any Sphinx extension module names here, as strings. They can be
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
-extensions = []
+extensions = ['sphinx.ext.autodoc','sphinx.ext.graphviz']
 
+# Disable javasphinx generation until we have a solution to long build
+# times. readthedocs timesout after 902 seconds.
 javasphinx_available = False
 try:
-     import javasphinx
-     javasphinx_available = True
-     extensions.append('javasphinx')
+    import javasphinx
+    javasphinx_available = True
+    extensions.append('javasphinx')
 except ImportError, e:
-     pass
+    pass
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
@@ -64,9 +66,9 @@ author = 'OpenDaylight Project'
 # built documents.
 #
 # The short X.Y version.
-version = 'Boron'
+version = 'Carbon'
 # The full version, including alpha/beta/rc tags.
-release = 'Boron'
+release = 'Carbon'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
@@ -126,6 +128,8 @@ html_theme = 'bootstrap'
 #html_theme_options = {}
 html_theme_options = {
     'bootswatch_theme': "united",
+    'navbar_sidebarrel': False,
+    'source_link_position': "footer",
 }
 
 # Add any paths that contain custom themes here, relative to this directory.
@@ -146,7 +150,7 @@ html_logo = '_static/odl_small.png'
 # The name of an image file (relative to this directory) to use as a favicon of
 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
 # pixels large.
-#html_favicon = None
+html_favicon = 'favicon.ico'
 
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
@@ -168,7 +172,9 @@ html_static_path = ['_static']
 #html_use_smartypants = True
 
 # Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
+html_sidebars = {
+    '**': ['localtoc.html', 'relations.html'],
+}
 
 # Additional templates that should be rendered to pages, maps page names to
 # template names.
@@ -309,12 +315,16 @@ linkcheck_ignore = [
     'https://git.opendaylight.org/gerrit/#/admin/projects/releng/builder',
 ]
 
-# Build integration stuff
-import subprocess
+import platform
+if platform.system() != 'Windows':
 
-subprocess.call(["./build-integration-robot-libdoc.sh"])
+    # Build integration stuff
+    import subprocess
+
+    subprocess.call(["./build-integration-robot-libdoc.sh"])
+
+    # Disable javasphinx generation until we have a solution to long build
+    # times. readthedocs timesout after 902 seconds.
+    if javasphinx_available:
+        subprocess.call(["./generate-javaapidoc.sh"])
 
-# Disable javasphinx generation until we have a solution to long build
-# times. readthedocs timesout after 902 seconds.
-# if javasphinx_available:
-#     subprocess.call(["./generate-javaapidoc.sh"])