-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add comments on ImageMagick requirement #10386
Conversation
7c507ee
to
74b7fe8
Compare
74b7fe8
to
9300564
Compare
Thanks a lot for the suggestions @AA-Turner |
I think more usefully you should also change the warning sphinx/sphinx/ext/imgconverter.py Lines 32 to 36 in 8c7a472
Something like the following may be more useful: - logger.warning(__('convert command %r cannot be run, '
- 'check the image_converter setting: %s'),
- self.config.image_converter, exc)
+ logger.warning(__(
+ f'Unable to run the image conversion command {self.config.image_converter!r}! '
+ 'sphinx.ext.imgconverter' requires ImageMagick by defult. '
+ 'Ensure it is installed, or set the configuration option '
+ "'image_converter' to a custom conversion command.\n\n"
+ f'Traceback: {exc}'
+ )) A |
I'm somewhat conflicted on the change of the documentation -- as noted in the extension, ImageMagick is just a default, and can be changed. Perhaps add "by default" or similar? sphinx/sphinx/ext/imgconverter.py Lines 69 to 79 in 8c7a472
A |
@AA-Turner I agree. |
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.
Grammar suggestions, otherwise seems alright!
A
Thank you for your work, and sorry for the incovinience. I think it's better to skip the test if ImageMagick not found. So I just posted #10411 to do that. |
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.
LGTM with nits.
No problem :) Thanks for reviewing! |
@tk0miya gentle ping, sorry for the noise. Is this okay to be merged? Thanks a lot 😃 🙏🏻 |
Sorry for my late response. Merging now. Thank you for your contribution! |
Subject: Add comments to clarify the cause of issue #10384
Purpose
Allow newcomers to quickly understand the requirement to ImageMagick if
test_ext_imgconverter.py
fails.NB: First contribution, thanks for reviewing! :)