Skip to content

Commit 40ce6f9

Browse files
committed
Remove latex scraper
We don't build latex docs currently, it is interfering with sphinx gallery for pickle reasons. In upstream mpl, we moved it to the local sphinxext module. I am not interested in porting that here for something that is not used yet.
1 parent a3cecdd commit 40ce6f9

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Diff for: docs/source/conf.py

-16
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,6 @@
6666

6767
# Sphinx gallery configuration
6868

69-
70-
def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, **kwargs):
71-
"""
72-
Reduce srcset when creating a PDF.
73-
74-
Because sphinx-gallery runs *very* early, we cannot modify this even in the
75-
earliest builder-inited signal. Thus we do it at scraping time.
76-
"""
77-
from sphinx_gallery.scrapers import matplotlib_scraper
78-
79-
if gallery_conf["builder_name"] == "latex":
80-
gallery_conf["image_srcset"] = []
81-
return matplotlib_scraper(block, block_vars, gallery_conf, **kwargs)
82-
83-
8469
sphinx_gallery_conf = {
8570
"examples_dirs": [
8671
"../../examples",
@@ -95,7 +80,6 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, **kwargs):
9580
"remove_config_comments": True,
9681
"min_reported_time": 1,
9782
"thumbnail_size": (320, 224),
98-
"image_scrapers": (matplotlib_reduced_latex_scraper,),
9983
# Compression is a significant effort that we skip for local and CI builds.
10084
"compress_images": ("thumbnails", "images") if is_release_build else (),
10185
"matplotlib_animations": True,

0 commit comments

Comments
 (0)