Skip to content

Commit 734e736

Browse files
committed
docs: added more favicons and other metadata
1 parent 693d7f7 commit 734e736

File tree

9 files changed

+82
-1
lines changed

9 files changed

+82
-1
lines changed

docs/docusaurus.config.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
88
const config = {
99
title: 'React Native Header',
1010
tagline: 'A simple, yet powerful, React Native Header component library.',
11-
favicon: 'img/favicon.ico',
11+
favicon: 'favicon.ico',
1212

1313
// Set the production url of your site here
1414
url: 'https://react-native-header.codeherence.com',
@@ -21,6 +21,41 @@ const config = {
2121
organizationName: 'codeherence', // Usually your GitHub org/user name.
2222
projectName: 'react-native-header', // Usually your repo name.
2323

24+
headTags: [
25+
{
26+
tagName: 'link',
27+
attributes: { rel: 'shortcut icon', href: '/favicon.ico' },
28+
},
29+
{
30+
tagName: 'link',
31+
attributes: { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
32+
},
33+
{
34+
tagName: 'link',
35+
attributes: { rel: 'icon', type: 'image/x-icon', href: '/favicon-16x16.ico', sizes: '16x16' },
36+
},
37+
{
38+
tagName: 'link',
39+
attributes: { rel: 'icon', type: 'image/x-icon', href: '/favicon-32x32.ico', sizes: '32x32' },
40+
},
41+
{
42+
tagName: 'link',
43+
attributes: { rel: 'icon', type: 'image/x-icon', href: '/favicon-96x96.ico', sizes: '96x96' },
44+
},
45+
{
46+
tagName: 'link',
47+
attributes: { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
48+
},
49+
{
50+
tagName: 'link',
51+
attributes: { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' },
52+
},
53+
{
54+
tagName: 'link',
55+
attributes: { rel: 'manifest', href: '/site.webmanifest' },
56+
},
57+
],
58+
2459
onBrokenLinks: 'throw',
2560
onBrokenMarkdownLinks: 'warn',
2661

@@ -53,6 +88,10 @@ const config = {
5388
({
5489
// Replace with your project's social card
5590
image: 'img/react-native-header-social-card.png',
91+
metadata: [
92+
{ name: 'author', content: 'Codeherence Inc.' },
93+
{ name: 'keywords', content: 'React Native Header, Codeherence, documentation, docs' },
94+
],
5695
navbar: {
5796
title: 'React Native Header',
5897
logo: {

docs/static/apple-touch-icon.png

13.4 KB
Loading

docs/static/favicon-32x32.ico

4.19 KB
Binary file not shown.

docs/static/favicon-96x96.ico

37.2 KB
Binary file not shown.
22.1 KB
Loading
35.8 KB
Loading

docs/static/safari-pinned-tab.svg

Lines changed: 23 additions & 0 deletions
Loading

docs/static/site.webmanifest

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "React Native Header",
3+
"short_name": "React Native Header",
4+
"icons": [
5+
{
6+
"src": "/img/logo-android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/img/logo-android-chrome-256x256.png",
12+
"sizes": "256x256",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#221a1a",
17+
"background_color": "#221a1a",
18+
"display": "standalone"
19+
}

0 commit comments

Comments
 (0)