From 077d6c8ff0c2ed72a662126b339c1e5581de59a0 Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Tue, 8 Feb 2022 11:42:39 -0800 Subject: [PATCH] [DOCS] re-activated tutorials --- docs/conf.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index f63627b62..09d355dcd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -78,18 +78,18 @@ smv_outputdir_format = '{ref.name}' smv_prefer_remote_refs = False # Sphinx gallery -# extensions += ['sphinx_gallery.gen_gallery'] -# from sphinx_gallery.sorting import FileNameSortKey -# sphinx_gallery_conf = { -# 'examples_dirs': '../python/tutorials/', -# 'gallery_dirs': 'getting-started/tutorials', -# 'filename_pattern': '', -# 'ignore_pattern': r'__init__\.py', -# 'within_subsection_order': FileNameSortKey, -# 'reference_url': { -# 'sphinx_gallery': None, -# } -# } +extensions += ['sphinx_gallery.gen_gallery'] +from sphinx_gallery.sorting import FileNameSortKey +sphinx_gallery_conf = { + 'examples_dirs': '../python/tutorials/', + 'gallery_dirs': 'getting-started/tutorials', + 'filename_pattern': '', + 'ignore_pattern': r'__init__\.py', + 'within_subsection_order': FileNameSortKey, + 'reference_url': { + 'sphinx_gallery': None, + } +} # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']