-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#75 Optipng fixes #77
Conversation
src/mkdocs_gallery/scrapers.py
Outdated
|
||
# save other srcset paths, keyed by multiplication factor: | ||
for mult in srcset_mult_facs: | ||
if not (mult == 1): | ||
if mult != 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - this is more readable of course, but maybe they had reasons to write the code that way in sphinx-gallery ?
Even if the original code is very strangely constructed IMHO, the less we modify it the more easily we can apply the same fixes than them.
Plus, since we did not port most of their tests yet in our code base (see #12), any modification is a risk of regression without CI safety harness.
Hi @Samreay , thanks a lot for this PR ! |
Let's see how this build goes |
It seems that the fix is not currently tested in the CI :
Unfortunately Thanks again ! |
Fixes #75
Initially just updated optipng to take the path instead of a str, but then noticed a few odd things in the code that I changed as well