Skip to content
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

Skip imgconverter availability check if builder supports the image type #8649

Merged
merged 1 commit into from Jan 4, 2021

Conversation

sephalon
Copy link

@sephalon sephalon commented Jan 4, 2021

Subject: Skip imgconverter availability check if builder supports the image type

Feature or Bugfix

  • Bugfix

Purpose

Pull request #7978 fixed calling the imgconverter is_availabality() function many times; however, the availability is currently still checked even if the builder supports the image type.

Relates

Close sphinx-doc#7973: ImgConverter runs is_available in HTML builder
Close missinglinkelectronics/sphinxcontrib-svg2pdfconverter#8: Extension should only run on LaTeX builder
@tk0miya tk0miya added the type:enhancement enhance or introduce a new feature label Jan 4, 2021
@tk0miya tk0miya added this to the 3.5.0 milestone Jan 4, 2021
Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Daltz333
Copy link

Daltz333 commented Jan 4, 2021

Just a small typo. It skips the availability check if the builder is not supported

@sephalon
Copy link
Author

sephalon commented Jan 5, 2021

@Daltz333 Depends on what abstraction level you look at it ;-) The commit itself skips the imgconverter availability check if the builder supports the image type.

@sephalon sephalon deleted the imgconverter-availability branch June 8, 2021 14:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:enhancement enhance or introduce a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants