2323# sys.path.insert(0, os.path.abspath('.'))
2424from pathlib import Path
2525
26+ import data_prototype
27+
2628# are we running circle CI?
2729CIRCLECI = "CIRCLECI" in os .environ
2830
6466
6567# Sphinx gallery configuration
6668
67-
68- def matplotlib_reduced_latex_scraper (block , block_vars , gallery_conf , ** kwargs ):
69- """
70- Reduce srcset when creating a PDF.
71-
72- Because sphinx-gallery runs *very* early, we cannot modify this even in the
73- earliest builder-inited signal. Thus we do it at scraping time.
74- """
75- from sphinx_gallery .scrapers import matplotlib_scraper
76-
77- if gallery_conf ["builder_name" ] == "latex" :
78- gallery_conf ["image_srcset" ] = []
79- return matplotlib_scraper (block , block_vars , gallery_conf , ** kwargs )
80-
81-
8269sphinx_gallery_conf = {
8370 "examples_dirs" : [
8471 "../../examples" ,
@@ -89,11 +76,10 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, **kwargs):
8976 "reference_url" : {
9077 "matplotlib" : None ,
9178 },
92- "backreferences_dir" : Path ("api" ) / Path ( "_as_gen" ),
79+ "backreferences_dir" : Path ("api" , "_as_gen" ),
9380 "remove_config_comments" : True ,
9481 "min_reported_time" : 1 ,
9582 "thumbnail_size" : (320 , 224 ),
96- "image_scrapers" : (matplotlib_reduced_latex_scraper ,),
9783 # Compression is a significant effort that we skip for local and CI builds.
9884 "compress_images" : ("thumbnails" , "images" ) if is_release_build else (),
9985 "matplotlib_animations" : True ,
@@ -126,7 +112,6 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, **kwargs):
126112# |version| and |release|, also used in various other places throughout the
127113# built documents.
128114#
129- import data_prototype
130115
131116# The short X.Y version.
132117version = data_prototype .__version__
0 commit comments