Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2016
Merged

DOC: add PNG logo fallback for Shinx builders not supporting SVG #6532

merged 2 commits into from
Jun 5, 2016

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Jun 3, 2016

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.

@tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone Jun 3, 2016
@@ -177,8 +177,11 @@
</map>

<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') %}
Copy link
Member

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 if image/svg+xml is in builder.supported_image_types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

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.

@tacaswell tacaswell merged commit ec276e2 into matplotlib:v1.5.x Jun 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants