mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-25 13:30:51 +08:00
Handle Sphinx 1.3 API change
This commit is contained in:
@@ -205,6 +205,9 @@ def generate_examples_and_gallery(example_dir, rst_dir, cfg):
|
||||
rst_dir.makedirs()
|
||||
|
||||
# we create an index.rst with all examples
|
||||
if isinstance(cfg.source_suffix, list):
|
||||
cfg.source_suffix = cfg.source_suffix[0]
|
||||
|
||||
gallery_index = open(rst_dir.pjoin('index'+cfg.source_suffix), 'w')
|
||||
|
||||
# Here we don't use an os.walk, but we recurse only twice: flat is
|
||||
|
||||
Reference in New Issue
Block a user