|
9 | 9 | from pygmt import __commit__, __version__
|
10 | 10 | from pygmt.clib import required_gmt_version
|
11 | 11 | from pygmt.sphinx_gallery import PyGMTScraper
|
12 |
| -from sphinx_gallery.sorting import ExampleTitleSortKey, ExplicitOrder |
13 | 12 |
|
14 | 13 | # Dictionary for dependency name and minimum required versions
|
15 | 14 | requirements = {
|
|
112 | 111 | ],
|
113 | 112 | # Set paths where to save the generated examples
|
114 | 113 | "gallery_dirs": ["intro", "tutorials", "gallery", "projections"],
|
115 |
| - "subsection_order": ExplicitOrder( |
116 |
| - [ |
117 |
| - "../examples/intro", |
118 |
| - "../examples/tutorials/basics", |
119 |
| - "../examples/tutorials/advanced", |
120 |
| - "../examples/gallery/maps", |
121 |
| - "../examples/gallery/lines", |
122 |
| - "../examples/gallery/symbols", |
123 |
| - "../examples/gallery/images", |
124 |
| - "../examples/gallery/3d_plots", |
125 |
| - "../examples/gallery/seismology", |
126 |
| - "../examples/gallery/basemaps", |
127 |
| - "../examples/gallery/histograms", |
128 |
| - "../examples/gallery/embellishments", |
129 |
| - "../examples/projections/azim", |
130 |
| - "../examples/projections/conic", |
131 |
| - "../examples/projections/cyl", |
132 |
| - "../examples/projections/misc", |
133 |
| - "../examples/projections/nongeo", |
134 |
| - "../examples/projections/table", |
135 |
| - ] |
136 |
| - ), |
| 114 | + "subsection_order": [ |
| 115 | + "../examples/intro", |
| 116 | + "../examples/tutorials/basics", |
| 117 | + "../examples/tutorials/advanced", |
| 118 | + "../examples/gallery/maps", |
| 119 | + "../examples/gallery/lines", |
| 120 | + "../examples/gallery/symbols", |
| 121 | + "../examples/gallery/images", |
| 122 | + "../examples/gallery/3d_plots", |
| 123 | + "../examples/gallery/seismology", |
| 124 | + "../examples/gallery/basemaps", |
| 125 | + "../examples/gallery/histograms", |
| 126 | + "../examples/gallery/embellishments", |
| 127 | + "../examples/projections/azim", |
| 128 | + "../examples/projections/conic", |
| 129 | + "../examples/projections/cyl", |
| 130 | + "../examples/projections/misc", |
| 131 | + "../examples/projections/nongeo", |
| 132 | + "../examples/projections/table", |
| 133 | + ], |
137 | 134 | # Pattern to search for example files
|
138 | 135 | "filename_pattern": r"\.py",
|
139 | 136 | # Remove the "Download all examples" button from the top level gallery
|
140 | 137 | "download_all_examples": False,
|
141 | 138 | # Sort gallery examples by the file names instead of number of lines [Default]
|
142 |
| - "within_subsection_order": ExampleTitleSortKey, |
| 139 | + "within_subsection_order": "ExampleTitleSortKey", |
143 | 140 | # Directory where function granular galleries are stored
|
144 | 141 | "backreferences_dir": "api/generated/backreferences",
|
145 | 142 | # Modules for which function level galleries are created (given as tuple of strings)
|
|
0 commit comments