Set order of sample sub-galleries

This commit is contained in:
Ray Speth 2023-09-23 16:22:16 -04:00 committed by Ray Speth
parent e0fb411ae2
commit 7ac1b9d780

View File

@ -13,6 +13,7 @@
import sys, os, re
from pathlib import Path
from sphinx_gallery.sorting import ExplicitOrder
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@ -67,6 +68,15 @@ sphinx_gallery_conf = {
'examples/fortran',
'examples/matlab_experimental',
],
'subsection_order': ExplicitOrder([
'../samples/python/thermo',
'../samples/python/kinetics',
'../samples/python/transport',
'../samples/python/reactors',
'../samples/python/onedim',
'../samples/python/surface_chemistry',
'../samples/python/multiphase',
]),
'reference_url': {
'cantera': None, # 'None' means the locally-documented module
}