Skip to content
Snippets Groups Projects
Commit 636ec730 authored by vuillaut's avatar vuillaut
Browse files

using rtd_sphinx theme and nbsphinx

parent 4f723eab
No related branches found
No related tags found
1 merge request!19Documentation from notebooks and snippets
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment