Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec276e2

Browse files
committed
Merge pull request#6532 from cgohlke/patch-2
DOC: add PNG logo fallback for Shinx builders not supporting SVG
2 parents43d4c10 +99da366 commitec276e2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎doc/_static/logo2.png‎

21.8 KB
Loading

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

184187
{% endblock %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp