DOC: add PNG logo fallback for Shinx builders not supporting SVG#6532
Merged
tacaswell merged 2 commits intomatplotlib:v1.5.xfrom Jun 5, 2016
cgohlke:patch-2
Merged
DOC: add PNG logo fallback for Shinx builders not supporting SVG#6532tacaswell merged 2 commits intomatplotlib:v1.5.xfrom cgohlke:patch-2
tacaswell merged 2 commits intomatplotlib:v1.5.xfrom
cgohlke:patch-2
Conversation
| <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> | ||
| <a href="{{ pathto('index') }}"><img src="{{ | ||
| pathto("_static/logo2.svg", 1) }}" width="540px" border="0" alt="matplotlib"/></a> | ||
| {%- if builder in ('htmlhelp', 'devhelp', 'latex') %} |
Member
There was a problem hiding this comment.
Would it be easier to check if image/svg+xml is in builder.supported_image_types?
Contributor
Author
There was a problem hiding this comment.
AFAIU, builder is just a name/string (http://www.sphinx-doc.org/en/stable/templating.html#global-variables).
Member
There was a problem hiding this comment.
Oh, that's too bad; seems like it would have been more future-proof that way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HTML Help and Latex output do not support SVG.
See also #5653 (comment) and http://www.sphinx-doc.org/en/stable/builders.html.
Tested with HTML Help on Windows.