Skip to content

Remove leftover config checking of image_srcset#1278

Merged
larsoner merged 2 commits intosphinx-gallery:masterfrom
lucyleeow:fix_image_srcset
Apr 1, 2024
Merged

Remove leftover config checking of image_srcset#1278
larsoner merged 2 commits intosphinx-gallery:masterfrom
lucyleeow:fix_image_srcset

Conversation

@lucyleeow
Copy link
Copy Markdown
Contributor

image_srcset config added in #808. Originally in that PR an empty string was meant to mean save the usual image: #808 (comment). Later on we changed it to never neededing the empty string: #808 (comment)

This removes the redundant config checking as image_srcset should not be taking an empty string.

First noticed: https://github.com/sphinx-gallery/sphinx-gallery/pull/1241/files#r1542174678

@lucyleeow
Copy link
Copy Markdown
Contributor Author

lucyleeow commented Mar 31, 2024

@larsoner AFAICT your comment from #808 (comment) is still relevant for this config:

I wouldn't mind a more general name like srcset, we say the builtin Matplotlib scraper supports it, Mayavi doesn't, and other custom scrapers can poll this attribute and expect a list of float.

?

This isn't in the docs, but I think it should be added if it is relevant?

@larsoner
Copy link
Copy Markdown
Contributor

larsoner commented Apr 1, 2024

We dropped Mayavi support in #1090 so I think that comment isn't as relevant anymore.

Changes LGTM, thanks @lucyleeow !

@larsoner larsoner merged commit 5fd301e into sphinx-gallery:master Apr 1, 2024
@lucyleeow lucyleeow deleted the fix_image_srcset branch April 2, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants