Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
DOC: add PNG logo fallback for Shinx builders not supporting SVG#6532
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| <divstyle="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> | ||
| <ahref="{{ pathto('index') }}"><imgsrc="{{ | ||
| pathto("_static/logo2.svg", 1) }}" width="540px"border="0"alt="matplotlib"/></a> | ||
| {%- if builder in ('htmlhelp', 'devhelp', 'latex') %} |
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.
Would it be easier to check ifimage/svg+xml is inbuilder.supported_image_types?
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.
AFAIU,builder is just a name/string (http://www.sphinx-doc.org/en/stable/templating.html#global-variables).
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.
Oh, that's too bad; seems like it would have been more future-proof that way.
HTML Help and Latex output do not support SVG.
See also#5653 (comment) andhttp://www.sphinx-doc.org/en/stable/builders.html.
Tested with HTML Help on Windows.