@@ -21,14 +21,69 @@ const embedDropdown = fs.readFileSync('./src/components/NavDropdown/EmbedMetaMas
21
21
const extendDropdown = fs . readFileSync ( './src/components/NavDropdown/ExtendScale.html' , 'utf-8' )
22
22
const npm2yarnPlugin = [ require ( '@docusaurus/remark-plugin-npm2yarn' ) , { sync : true } ]
23
23
/** @type {import('@docusaurus/types').Config } */
24
+ const siteUrl = 'https://docs.metamask.io'
25
+ const baseUrl = process . env . DEST || '/'
26
+ const fullUrl = new URL ( baseUrl , siteUrl ) . toString ( )
24
27
const config = {
25
28
title : 'MetaMask developer documentation' ,
26
29
// tagline: '',
27
30
url : 'https://docs.metamask.io' ,
28
31
baseUrl : process . env . DEST || '/' , // overwritten in github action for staging / latest
29
32
onBrokenLinks : 'warn' ,
30
33
onBrokenMarkdownLinks : 'warn' ,
31
- favicon : 'img/metamask-fox.svg' ,
34
+ favicon : 'img/favicons/favicon-96x96.png' ,
35
+
36
+ headTags : [
37
+ {
38
+ tagName : 'link' ,
39
+ attributes : {
40
+ rel : 'icon' ,
41
+ type : 'image/png' ,
42
+ sizes : '96x96' ,
43
+ href : 'img/favicons/favicon-96x96.png' ,
44
+ } ,
45
+ } ,
46
+ {
47
+ tagName : 'link' ,
48
+ attributes : {
49
+ rel : 'icon' ,
50
+ type : 'image/png' ,
51
+ sizes : '192x192' ,
52
+ href : 'img/favicons/web-app-manifest-192x192.png' ,
53
+ } ,
54
+ } ,
55
+ {
56
+ tagName : 'link' ,
57
+ attributes : {
58
+ rel : 'icon' ,
59
+ type : 'image/png' ,
60
+ sizes : '512x512' ,
61
+ href : 'img/favicons/web-app-manifest-512x512.png' ,
62
+ } ,
63
+ } ,
64
+ {
65
+ tagName : 'link' ,
66
+ attributes : {
67
+ rel : 'apple-touch-icon' ,
68
+ sizes : '180x180' ,
69
+ href : 'img/favicons/apple-touch-icon.png' ,
70
+ } ,
71
+ } ,
72
+ {
73
+ tagName : 'script' ,
74
+ attributes : {
75
+ type : 'application/ld+json' ,
76
+ } ,
77
+ innerHTML : `
78
+ {
79
+ "@context": "https://schema.org",
80
+ "@type": "Organization",
81
+ "url": "${ fullUrl } ",
82
+ "logo": "${ new URL ( 'img/favicons/favicon-96x96.png' , fullUrl ) . toString ( ) } "
83
+ }
84
+ ` ,
85
+ } ,
86
+ ] ,
32
87
33
88
// GitHub pages deployment config.
34
89
// If you aren't using GitHub pages, you don't need these.
0 commit comments