Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09f6f5a

Browse files
Sort gallery subsections by filename
1 parent 4d1ca36 commit 09f6f5a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ipython
1212
ipywidgets
1313
numpydoc>=0.4
1414
pillow
15-
sphinx-gallery>=0.1.12
15+
sphinx-gallery>=0.1.13

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _check_deps():
7575
_check_deps()
7676

7777
# Import only after checking for dependencies.
78-
from sphinx_gallery.sorting import ExplicitOrder
78+
from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey
7979

8080
if shutil.which('dot') is None:
8181
raise OSError(
@@ -130,6 +130,7 @@ def _check_deps():
130130
},
131131
'backreferences_dir': 'api/_as_gen',
132132
'subsection_order': ExplicitOrder(explicit_order_folders),
133+
'within_subsection_order': FileNameSortKey,
133134
'min_reported_time': 1,
134135
}
135136

doc/devel/documenting_mpl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ using the Sphinx_ documentation generation tool. There are several extra
4242
requirements that are needed to build the documentation. They are listed in
4343
:file:`doc-requirements.txt` and listed below:
4444

45-
* Sphinx>=1.3, !=1.5.0, !=1.6.4
45+
* Sphinx>=1.3, !=1.5.0, !=1.6.4, !=1.7.3
4646
* colorspacious
4747
* IPython
4848
* numpydoc>=0.4
4949
* Pillow
50-
* sphinx-gallery>=0.1.12
50+
* sphinx-gallery>=0.1.13
5151
* graphviz
5252

5353
.. note::

0 commit comments

Comments
 (0)