[DOCS] Switched tutorials to Python and use Sphinx Gallery

This commit is contained in:
Philippe Tillet
2021-03-06 14:03:01 -05:00
parent 5172792543
commit ca04da3575
9 changed files with 515 additions and 645 deletions

View File

@@ -30,9 +30,18 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['nbsphinx', 'sphinx.ext.autosectionlabel']
extensions = ['sphinx.ext.autosectionlabel']
autosectionlabel_prefix_document = True
# Sphinx gallery
extensions += ['sphinx_gallery.gen_gallery']
sphinx_gallery_conf = {
'examples_dirs': '../python/tutorials/',
'gallery_dirs': 'tutorials',
'filename_pattern': '',
'ignore_pattern': r'__init__\.py',
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -69,7 +78,7 @@ language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '**.ipynb_checkpoints']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'