diff --git a/docs/conf.py b/docs/conf.py index fdd6b31c52e73044e5413b806dc0c705a3f41ada..ad5570760919fb5f894ee97ca5ed06a9827fe3fa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,12 +13,16 @@ import os import sys import shutil + + sys.path.insert(0, os.path.abspath('..')) notebook_dir = '../examples/notebooks/' if not os.path.exists('examples'): os.mkdir('examples') [shutil.copy(notebook_dir + file, 'examples') for file in os.listdir(notebook_dir) if file.endswith('.ipynb')] + + # -- Project information ----------------------------------------------------- project = 'eossr' @@ -34,7 +38,8 @@ release = '' # ones. extensions = [ 'sphinx.ext.autodoc', - 'sphinx.ext.napoleon' + 'sphinx.ext.napoleon', + 'nbsphinx', ] # Add any paths that contain templates here, relative to this directory. @@ -62,7 +67,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'alabaster' +html_theme = 'sphinx_rtd_theme' # 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,