Skip to content

Commit

Permalink
Try wrap in ExplicitOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Jan 24, 2025
1 parent 1327181 commit 2e94795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def reset_servers(gallery_conf, fname, when):
pass
print(f"Counted {nb_procs} {proc_name} processes {when} example {fname}.")


from sphinx_gallery.sorting import ExplicitOrder
sphinx_gallery_conf = {
# convert rst to md for ipynb
"pypandoc": True,
Expand All @@ -191,7 +191,7 @@ def reset_servers(gallery_conf, fname, when):
# path where to save gallery generated examples
"gallery_dirs": ["examples"],
# Explicit gallery subsection ordering
"subsection_order": ['../examples/basic',
"subsection_order": ExplicitOrder(['../examples/basic',
'../examples/mathematical_operations',
'../examples/transient_analyses',
'../examples/modal_analyses',
Expand All @@ -209,7 +209,7 @@ def reset_servers(gallery_conf, fname, when):
'../examples/lsdyna',
'../examples/cfx',
'*',
],
]),
# Pattern to search for example files
"filename_pattern": r"\.py",
# Pattern to search for example files to be ignored
Expand Down

0 comments on commit 2e94795

Please sign in to comment.