Skip to content

Commit 004c5cc

Browse files
committed
MNT: re-organize galleries under one subdir[ci doc]
1 parent 76dd07e commit 004c5cc

File tree

628 files changed

+32
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

628 files changed

+32
-31
lines changed

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
216216
gallery_dirs = [f'{ed}' for ed in ['gallery', 'tutorials', 'plot_types']
217217
if f'{ed}/*' not in skip_subdirs]
218218

219-
example_dirs = [f'../{gd}'.replace('gallery', 'examples') for gd in
220-
gallery_dirs]
219+
example_dirs = [f'../galleries/{gd}' for gd in gallery_dirs]
221220

222221
sphinx_gallery_conf = {
223222
'backreferences_dir': Path('api') / Path('_as_gen'),

doc/devel/documenting_mpl.rst

Lines changed: 8 additions & 6 deletions

doc/sphinxext/gallery_order.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@
1111
UNSORTED = "unsorted"
1212

1313
examples_order = [
14-
'../examples/lines_bars_and_markers',
15-
'../examples/images_contours_and_fields',
16-
'../examples/subplots_axes_and_figures',
17-
'../examples/statistics',
18-
'../examples/pie_and_polar_charts',
19-
'../examples/text_labels_and_annotations',
20-
'../examples/color',
21-
'../examples/shapes_and_collections',
22-
'../examples/style_sheets',
23-
'../examples/pyplots',
24-
'../examples/axes_grid1',
25-
'../examples/axisartist',
26-
'../examples/showcase',
14+
'../galleries/gallery/lines_bars_and_markers',
15+
'../galleries/gallery/images_contours_and_fields',
16+
'../galleries/gallery/subplots_axes_and_figures',
17+
'../galleries/gallery/statistics',
18+
'../galleries/gallery/pie_and_polar_charts',
19+
'../galleries/gallery/text_labels_and_annotations',
20+
'../galleries/gallery/color',
21+
'../galleries/gallery/shapes_and_collections',
22+
'../galleries/gallery/style_sheets',
23+
'../galleries/gallery/pyplots',
24+
'../galleries/gallery/axes_grid1',
25+
'../galleries/gallery/axisartist',
26+
'../galleries/gallery/showcase',
2727
UNSORTED,
28-
'../examples/userdemo',
28+
'../galleries/gallery/userdemo',
2929
]
3030

3131
tutorials_order = [
32-
'../tutorials/introductory',
33-
'../tutorials/intermediate',
34-
'../tutorials/advanced',
32+
'../galleries/tutorials/introductory',
33+
'../galleries/tutorials/intermediate',
34+
'../galleries/tutorials/advanced',
3535
UNSORTED,
36-
'../tutorials/provisional'
36+
'../galleries/tutorials/provisional'
3737
]
3838

3939
plot_types_order = [
40-
'../plot_types/basic',
41-
'../plot_types/arrays',
42-
'../plot_types/stats',
43-
'../plot_types/unstructured',
44-
'../plot_types/3D',
40+
'../galleries/plot_types/basic',
41+
'../galleries/plot_types/arrays',
42+
'../galleries/plot_types/stats',
43+
'../galleries/plot_types/unstructured',
44+
'../galleries/plot_types/3D',
4545
UNSORTED
4646
]
4747

File renamed without changes.

0 commit comments

Comments
 (0)