Skip to content

Commit 1b2f0e0

Browse files
committed
Add Apple touch icons and MS tile icon
1 parent 5088726 commit 1b2f0e0

6 files changed

+19
-0
lines changed

python_docs_theme/layout.html

+11
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
<link rel="icon" type="image/x-icon" href="{{ pathto('_static/' + theme_root_favicon, 1) }}" />
41+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ pathto('_static/' + theme_apple_touch_icon_144x144, 1) }}" />
42+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ pathto('_static/' + theme_apple_touch_icon_72x72, 1) }}" />
43+
<link rel="apple-touch-icon-precomposed" href="{{ pathto('_static/' + theme_apple_touch_icon, 1) }}" />
44+
<link rel="apple-touch-icon" href="{{ pathto('_static/' + theme_apple_touch_icon, 1) }}" />
45+
46+
{# Tile icon for Win8 (icon + tile color) #}
47+
<meta name="msapplication-TileImage" content="{{ pathto('_static/' + theme_msapplication_tileimage, 1) }}">
48+
<meta name="msapplication-TileColor" content="{{ theme_msapplication_tilecolor }}">
49+
<meta name="msapplication-navbutton-color" content="{{ theme_msapplication_tilecolor }}">
50+
4051
{% if builder != "htmlhelp" %}
4152
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
4253
{% endif %}
Loading
Loading
Loading
3.61 KB
Loading

python_docs_theme/theme.conf

+8
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)