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

Skip to content

Commit 0dad4dc

Browse files
Sort gallery subsections by filename
1 parent 89f38ae commit 0dad4dc

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ def _check_deps():
7272
_check_deps()
7373

7474
# Import only after checking for dependencies.
75-
from sphinx_gallery.sorting import ExplicitOrder
75+
from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey
7676
# This is only necessary to monkey patch the signature later on.
7777
from sphinx_gallery import gen_rst
7878

79+
7980
if shutil.which('dot') is None:
8081
raise OSError(
8182
"No binary named dot - you need to install the Graph Visualization "
@@ -129,6 +130,7 @@ def _check_deps():
129130
},
130131
'backreferences_dir': 'api/_as_gen',
131132
'subsection_order': ExplicitOrder(explicit_order_folders),
133+
'within_subsection_order': FileNameSortKey,
132134
'min_reported_time': 1,
133135
}
134136

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)