Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bf53ff

Browse files
committed
DOC: not all Sphinx builders support SVG
1 parent 5fbabdf commit 4bf53ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/_templates/layout.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,11 @@ <h3>We're updating the default styles for Matplotlib 2.0</h3>
177177
</map>
178178

179179
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
180-
<a href="{{ pathto('index') }}"><img src="{{
181-
pathto("_static/logo2.svg", 1) }}" width="540px" border="0" alt="matplotlib"/></a>
180+
{%- if builder in ('htmlhelp', 'devhelp', 'latex') %}
181+
<a href="{{ pathto('index') }}"><img src="{{pathto("_static/logo2.png", 1) }}" width="540px" border="0" alt="matplotlib"/></a>
182+
{%- else %}
183+
<a href="{{ pathto('index') }}"><img src="{{pathto("_static/logo2.svg", 1) }}" width="540px" border="0" alt="matplotlib"/></a>
184+
{%- endif %}
182185
</div>
183186

184187
{% endblock %}

0 commit comments

Comments
 (0)