@@ -21,14 +21,69 @@ const embedDropdown = fs.readFileSync('./src/components/NavDropdown/EmbedMetaMas
2121const extendDropdown = fs . readFileSync ( './src/components/NavDropdown/ExtendScale.html' , 'utf-8' )
2222const npm2yarnPlugin = [ require ( '@docusaurus/remark-plugin-npm2yarn' ) , { sync : true } ]
2323/** @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 ( )
2427const config = {
2528 title : 'MetaMask developer documentation' ,
2629 // tagline: '',
2730 url : 'https://docs.metamask.io' ,
2831 baseUrl : process . env . DEST || '/' , // overwritten in github action for staging / latest
2932 onBrokenLinks : 'warn' ,
3033 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+ ] ,
3287
3388 // GitHub pages deployment config.
3489 // If you aren't using GitHub pages, you don't need these.
0 commit comments