mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-30 13:40:44 +08:00
Handle Sphinx 1.3 API change
This commit is contained in:
1 parent
0e61374a89
commit
c62397493a
1 file changed
+3
@@ -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