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

Commit1b2f0e0

Browse files
committed
Add Apple touch icons and MS tile icon
1 parent5088726 commit1b2f0e0

6 files changed

+19
-0
lines changed

‎python_docs_theme/layout.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,18 @@
3636
{% endblock %}
3737

3838
{% block extrahead %}
39+
{# Place icon files in the root if possible (let browsers look for them where they expect them to be) #}
3940
<linkrel="icon"type="image/x-icon"href="{{ pathto('_static/' + theme_root_favicon, 1) }}"/>
41+
<linkrel="apple-touch-icon-precomposed"sizes="144x144"href="{{ pathto('_static/' + theme_apple_touch_icon_144x144, 1) }}"/>
42+
<linkrel="apple-touch-icon-precomposed"sizes="72x72"href="{{ pathto('_static/' + theme_apple_touch_icon_72x72, 1) }}"/>
43+
<linkrel="apple-touch-icon-precomposed"href="{{ pathto('_static/' + theme_apple_touch_icon, 1) }}"/>
44+
<linkrel="apple-touch-icon"href="{{ pathto('_static/' + theme_apple_touch_icon, 1) }}"/>
45+
46+
{# Tile icon for Win8 (icon + tile color) #}
47+
<metaname="msapplication-TileImage"content="{{ pathto('_static/' + theme_msapplication_tileimage, 1) }}">
48+
<metaname="msapplication-TileColor"content="{{ theme_msapplication_tilecolor }}">
49+
<metaname="msapplication-navbutton-color"content="{{ theme_msapplication_tilecolor }}">
50+
4051
{% if builder != "htmlhelp" %}
4152
{% if not embedded %}<scripttype="text/javascript"src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
4253
{% endif %}
Loading
3.61 KB
Loading

‎python_docs_theme/theme.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ root_url = https://www.python.org/
2828
root_favicon = favicon.ico
2929
root_icon = py.png
3030
root_include_title = True
31+
32+
apple_touch_icon_144x144 = apple-touch-icon-144x144-precomposed.png
33+
apple_touch_icon_72x72 = apple-touch-icon-72x72-precomposed.png
34+
apple_touch_icon = apple-touch-icon-precomposed.png
35+
36+
msapplication_tileimage = metro-icon-144x144.png
37+
msapplication_tilecolor = #3673a5
38+
msapplication_navbutton_color = #3673a5

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp