Skip to content

Commit

Permalink
try PNG instead of ICO (copy saucelabs.com)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Graham committed Aug 2, 2024
1 parent 01d64a8 commit bde50ee
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
22 changes: 21 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const docusaurusConfig = {
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'favicon.ico',
organizationName: 'saucelabs',
projectName: 'sauce-docs',
// TODO: I don't think google-site-verification is working at all, confirm with P.O.
customFields: {
headTags: [
{
Expand All @@ -22,6 +22,26 @@ const docusaurusConfig = {
},
],
},
headTags: [
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/img/favicon-16x16.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/img/favicon-32x32.png',
},
},
],
scripts: [
'/scripts/hide.js',
// Need Help? button
Expand Down
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ module.exports = {
'visual-testing/workflows/test-execution',
'visual-testing/workflows/review',
'visual-testing/workflows/ci',
'visual-testing/workflows/api-lifecycle'
'visual-testing/workflows/api-lifecycle',
],
},
{
Expand Down
13 changes: 9 additions & 4 deletions static/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
<title>404 Error | Sauce Docs</title>
<link rel="stylesheet" href="/css/404.css" />
<link
data-react-helmet="true"
rel="shortcut icon"
href="/img/favicon.ico"
/>
rel="icon"
type="image/png"
href="/img/favicon-32x32.png"
sizes="32x32" />
<link
rel="icon"
type="image/png"
href="/img/favicon-16x16.png"
sizes="16x16" />
</head>
<body>
<div class="container">
Expand Down
Binary file removed static/favicon.ico
Binary file not shown.

0 comments on commit bde50ee

Please sign in to comment.