@@ -172,30 +172,28 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
172172
173173
174174sphinx_gallery_conf = {
175+ 'backreferences_dir' : Path ('api' ) / Path ('_as_gen' ),
176+ # Compression is a significant effort that we skip for local and CI builds.
177+ 'compress_images' : ('thumbnails' , 'images' ) if is_release_build else (),
178+ 'doc_module' : ('matplotlib' , 'mpl_toolkits' ),
175179 'examples_dirs' : ['../examples' , '../tutorials' , '../plot_types' ],
176180 'filename_pattern' : '^((?!sgskip).)*$' ,
177181 'gallery_dirs' : ['gallery' , 'tutorials' , 'plot_types' ],
178- 'doc_module' : ('matplotlib' , 'mpl_toolkits' ),
179- 'reference_url' : {
180- 'matplotlib' : None ,
181- },
182- 'backreferences_dir' : Path ('api' ) / Path ('_as_gen' ),
183- 'subsection_order' : gallery_order .sectionorder ,
184- 'within_subsection_order' : gallery_order .subsectionorder ,
185- 'remove_config_comments' : True ,
186- 'min_reported_time' : 1 ,
187- 'thumbnail_size' : (320 , 224 ),
188182 'image_scrapers' : (matplotlib_reduced_latex_scraper , ),
189- # Compression is a significant effort that we skip for local and CI builds.
190- 'compress_images' : ('thumbnails' , 'images' ) if is_release_build else (),
191- 'matplotlib_animations' : True ,
192183 'image_srcset' : ["2x" ],
193184 'junit' : '../test-results/sphinx-gallery/junit.xml' if CIRCLECI else '' ,
185+ 'matplotlib_animations' : True ,
186+ 'min_reported_time' : 1 ,
187+ 'reference_url' : {'matplotlib' : None },
188+ 'remove_config_comments' : True ,
194189 'reset_modules' : (
195190 'matplotlib' ,
196191 # clear basic_units module to re-register with unit registry on import
197192 lambda gallery_conf , fname : sys .modules .pop ('basic_units' , None )
198193 ),
194+ 'subsection_order' : gallery_order .sectionorder ,
195+ 'thumbnail_size' : (320 , 224 ),
196+ 'within_subsection_order' : gallery_order .subsectionorder ,
199197}
200198
201199mathmpl_fontsize = 11.0
0 commit comments