23
23
# sys.path.insert(0, os.path.abspath('.'))
24
24
from pathlib import Path
25
25
26
+ import data_prototype
27
+
26
28
# are we running circle CI?
27
29
CIRCLECI = "CIRCLECI" in os .environ
28
30
64
66
65
67
# Sphinx gallery configuration
66
68
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
-
82
69
sphinx_gallery_conf = {
83
70
"examples_dirs" : [
84
71
"../../examples" ,
@@ -89,11 +76,10 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, **kwargs):
89
76
"reference_url" : {
90
77
"matplotlib" : None ,
91
78
},
92
- "backreferences_dir" : Path ("api" ) / Path ( "_as_gen" ),
79
+ "backreferences_dir" : Path ("api" , "_as_gen" ),
93
80
"remove_config_comments" : True ,
94
81
"min_reported_time" : 1 ,
95
82
"thumbnail_size" : (320 , 224 ),
96
- "image_scrapers" : (matplotlib_reduced_latex_scraper ,),
97
83
# Compression is a significant effort that we skip for local and CI builds.
98
84
"compress_images" : ("thumbnails" , "images" ) if is_release_build else (),
99
85
"matplotlib_animations" : True ,
@@ -126,7 +112,6 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, **kwargs):
126
112
# |version| and |release|, also used in various other places throughout the
127
113
# built documents.
128
114
#
129
- import data_prototype
130
115
131
116
# The short X.Y version.
132
117
version = data_prototype .__version__
0 commit comments