Skip to content

Commit 2e94795

Browse files
committed
Try wrap in ExplicitOrder
1 parent 1327181 commit 2e94795

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def reset_servers(gallery_conf, fname, when):
180180
pass
181181
print(f"Counted {nb_procs} {proc_name} processes {when} example {fname}.")
182182

183-
183+
from sphinx_gallery.sorting import ExplicitOrder
184184
sphinx_gallery_conf = {
185185
# convert rst to md for ipynb
186186
"pypandoc": True,
@@ -191,7 +191,7 @@ def reset_servers(gallery_conf, fname, when):
191191
# path where to save gallery generated examples
192192
"gallery_dirs": ["examples"],
193193
# Explicit gallery subsection ordering
194-
"subsection_order": ['../examples/basic',
194+
"subsection_order": ExplicitOrder(['../examples/basic',
195195
'../examples/mathematical_operations',
196196
'../examples/transient_analyses',
197197
'../examples/modal_analyses',
@@ -209,7 +209,7 @@ def reset_servers(gallery_conf, fname, when):
209209
'../examples/lsdyna',
210210
'../examples/cfx',
211211
'*',
212-
],
212+
]),
213213
# Pattern to search for example files
214214
"filename_pattern": r"\.py",
215215
# Pattern to search for example files to be ignored

0 commit comments

Comments
 (0)