From 636ec73022670b2ea154d4fd7fd6e2f9aa2ff10c Mon Sep 17 00:00:00 2001 From: vuillaut <thomas.vuillaume@gmail.com> Date: Tue, 14 Sep 2021 23:28:05 +0200 Subject: [PATCH] using rtd_sphinx theme and nbsphinx --- docs/conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index fdd6b31c..ad557076 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, -- GitLab