Skip to content

Commit 1dfcff8

Browse files
committed
docs(sphinx): Add app icons, manifest, favicon
1 parent 220e724 commit 1dfcff8

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

docs/_templates/layout.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
{% extends "!layout.html" %}
22
{%- block extrahead %}
33
{{ super() }}
4+
{%- if theme_show_meta_manifest_tag == true %}
45
<link rel="manifest" href="/manifest.json">
6+
{% endif -%}
7+
{%- if theme_show_meta_og_tags == true %}
8+
<meta name="description" content="vcs abstraction layer">
9+
10+
<!-- Open Graph / Facebook -->
11+
<meta property="og:type" content="website">
12+
<meta property="og:url" content="{{ theme_project_url }}/">
13+
<meta property="og:title" content="libvcs">
14+
<meta property="og:description" content="vcs abstraction layer">
15+
<meta property="og:image" itemprop="image" content="{{ theme_project_url }}/_static/img/icons/icon-192x192.png">
16+
17+
<!-- Twitter -->
18+
<meta property="twitter:card" content="summary_large_image">
19+
<meta property="twitter:url" content="{{ theme_project_url }} ">
20+
<meta property="twitter:title" content="libvcs">
21+
<meta property="twitter:description" content="vcs abstraction layer">
22+
<meta property="twitter:image" content="{{ theme_project_url }}/_static/img/icons/icon-512x512.png">
23+
{% endif -%}
24+
{%- if theme_show_meta_app_icon_tags == true %}
25+
<meta name="theme-color" content="#ffffff">
26+
<meta name="application-name" content="libvcs">
27+
28+
<link rel="shortcut icon" href="/_static/favicon.ico">
29+
<link rel="icon" type="image/png" sizes="512x512" href="/_static/img/icons/icon-512x512.png">
30+
<link rel="icon" type="image/png" sizes="32x32" href="/_static/img/icons/icon-32x32.png">
31+
<link rel="icon" type="image/png" sizes="16x16" href="/_static/img/icons/icon-16x16.png">
32+
33+
<!-- Apple -->
34+
<meta name="apple-mobile-web-app-title" content="libvcs">
35+
36+
<link rel="apple-touch-icon" sizes="192x192" href="/_static/img/icons/icon-192x192.png">
37+
<link rel="mask-icon" href="/_static/img/libvcs.svg" color="grey">
38+
{% endif -%}
539
{% endblock %}

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ def setup(app):
7373
'github_banner': True,
7474
'projects': alagitpull.projects,
7575
'project_name': about['__title__'],
76+
'project_url': 'https://libvcs.git-pull.com',
77+
'show_meta_manifest_tag': True,
78+
'show_meta_og_tags': True,
79+
'show_meta_app_icon_tags': True,
7680
}
7781
html_sidebars = {
7882
'**': [

0 commit comments

Comments
 (0)