From 383591d635dfcda048f5c8a69b4049f31ec1054c Mon Sep 17 00:00:00 2001 From: Dan Graham Date: Fri, 2 Aug 2024 12:11:35 -0700 Subject: [PATCH 1/2] try PNG instead of ICO (copy saucelabs.com) (#2877) Co-authored-by: Daniel Graham --- docusaurus.config.js | 22 +++++++++++++++++++++- sidebars.js | 2 +- static/404.html | 13 +++++++++---- static/favicon.ico | Bin 15086 -> 0 bytes 4 files changed, 31 insertions(+), 6 deletions(-) delete mode 100644 static/favicon.ico diff --git a/docusaurus.config.js b/docusaurus.config.js index 059394ffa5..e1ed2188e4 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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: [ { @@ -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 diff --git a/sidebars.js b/sidebars.js index ca052ce37b..453378a55c 100644 --- a/sidebars.js +++ b/sidebars.js @@ -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', ], }, { diff --git a/static/404.html b/static/404.html index 2a122000c5..584d0b6b57 100644 --- a/static/404.html +++ b/static/404.html @@ -4,10 +4,15 @@ 404 Error | Sauce Docs + rel="icon" + type="image/png" + href="/img/favicon-32x32.png" + sizes="32x32" /> +
diff --git a/static/favicon.ico b/static/favicon.ico deleted file mode 100644 index 8aebebb477fb0bb53e196238eca3efc67ed81eab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmeHNS%@4(7_M=YQ9LFOD&oN|cx%K!KuNZ{XAn>HQAAYG_#lG#rlLl(vpxhw-JR(* zgcXlh6$GDDL~+O>d0CGb7m{@M?!Y1jqA)1vD3cw(zh`<<+f!9t-BWvj(@^tI9sgDT zUw>8o-Hhc}p6%Gd0LR&f*D`h+V{Cl9SKr3i656%_QvcIuGqxWCZon9zuqRNcJ$$a| zg3<422DZ`+xPg6t&9|P)R03;{yHv72ST3KtSvu7`r&9Cn&XDDos%Jm889GdR6E_bj zd!+j+*>E#-fc%Swbole2zx&dS*1?bug?4}+y}aS_`{nJ1=AU%{)IgVH{X(aQsb|B(-6u}Qi(l<+PrAwQHwz9gJCkC!io z-~2J0?{xJ_y4xqolC>Y_$Y&rw-mxXjuSS1TekiMqNq9Bic^vZpIxV`cnNvfJ&3KD-docX$Hd!ug zk6pOQ~pP5T8_Cbt!4zc`_?A!)1GvrH7%?8dbgOswjV1G@Ucb(79 zZ4fg{&TDqLOv}N@lfecZI^!B)-XoIQ2FSY`<)0yUtz!eq3H0(&^UzV6Z*YC*Gf}<) z=jSiv=Ra$&Y7SiQzCw>@;$53~h|aml$2=`=z&Z(~-o461({*uvA z*#J1M3{TQ7{2l^hKb4GEt^g*{2WXQ7Yw zwAV!Q7w2DHnz&xUUnrO9{3-aW)`36# zFN5?OUhXae*$zecfNON1J&Nn=#}ED-i~eW%G5mKC12GxzEh71VBRq%3b%1>Qcjomz zzWh%6RWycROo!96$0jbPcIi0~b58xyLpI^{tA#e}#DU+EhaLlKht`w`XV^B%dA2G4N(HC4Rg|g2j8%|bs;@A1IM3L8 Tj Date: Fri, 2 Aug 2024 12:16:12 -0700 Subject: [PATCH 2/2] try removing beamer from docs site (#2876) Co-authored-by: Daniel Graham --- docusaurus.config.js | 12 -------- src/css/beamer.css | 19 ------------- src/css/custom.css | 1 - src/plugins/beamer/index.js | 56 ------------------------------------- 4 files changed, 88 deletions(-) delete mode 100644 src/css/beamer.css delete mode 100644 src/plugins/beamer/index.js diff --git a/docusaurus.config.js b/docusaurus.config.js index e1ed2188e4..3b8b3fa0cb 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -59,11 +59,6 @@ const docusaurusConfig = { }, ], themeConfig: { - beamer: { - product_id: `'WyhkZHOU27797'`, - display: `'popup'`, - // selector: `'.beamerContainer'`, - }, prism: { additionalLanguages: [ 'java', @@ -120,12 +115,6 @@ const docusaurusConfig = { position: 'left', to: '/error-reporting/getting-started', }, - { - type: 'html', - position: 'right', - className: 'beamerTrigger', - value: 'Product Updates', - }, ], }, /* this is a swizzled component, see inside theme folder */ @@ -175,7 +164,6 @@ const docusaurusConfig = { ], ], themes: ['docusaurus-theme-github-codeblock'], - plugins: ['./src/plugins/beamer'], }; if (!process.env.SAUCE_DOCS_DEV) { diff --git a/src/css/beamer.css b/src/css/beamer.css deleted file mode 100644 index b49b95b999..0000000000 --- a/src/css/beamer.css +++ /dev/null @@ -1,19 +0,0 @@ -/*.beamerTrigger button {*/ -/*}*/ - -.beamer-navbar-bell { - /* filter: invert(43%) sepia(88%) saturate(4869%) hue-rotate(197deg) - brightness(92%) contrast(89%); */ -} - -html[data-theme="dark"] .beamer-navbar-bell { - /* filter: invert(100%) sepia(0%) saturate(7475%) hue-rotate(245deg) - brightness(112%) contrast(99%); */ - filter: invert(1); -} - -.beamer_icon.active, -#beamerIcon.active { - background-color: var(--yellow-500) !important; - color: var(--inline-link) !important; -} diff --git a/src/css/custom.css b/src/css/custom.css index 4c15447d7e..0522a525fa 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -16,7 +16,6 @@ @import "footer-styles.css"; @import "fw-badge-override.css"; @import "homesearchbar.css"; -@import "beamer.css"; @import "./variables/colors.modules.css"; @import "./variables/fonts.modules.css"; diff --git a/src/plugins/beamer/index.js b/src/plugins/beamer/index.js deleted file mode 100644 index 702394b4cb..0000000000 --- a/src/plugins/beamer/index.js +++ /dev/null @@ -1,56 +0,0 @@ -module.exports = function (context) { - const { siteConfig } = context; // - const { themeConfig } = siteConfig; - - if (!themeConfig.beamer) { - throw new Error( - 'You need to specify `beamer` object in `themeConfig` ' + - 'with `product_id` field in it to use beamer' - ); - } - if (!themeConfig.beamer.product_id) { - throw new Error( - 'You specified the `goatCounter` object in `themeConfig`, ' + - 'but the `product_id` field was missing. ' - ); - } - - const selector = `selector: ${themeConfig.beamer.selector}`; - const display = `display: ${themeConfig.beamer.display}`; /* Choose how to display Beamer panel */ - // const top = `top: ${themeConfig.beamer.top}`; /* Top position offset for notification bubble */ - // const bottom = `bottom: ${themeConfig.beamer.bottom}`; /* Bottom position offset for notification bubble */ - // const button_position = `button_position: ${themeConfig.beamer.button_position}`; - - return { - name: 'docusaurus-plugin-beamer', - injectHtmlTags: () => { - // Adds additional HTML to every page - return { - headTags: [ - { - tagName: 'script', - innerHTML: ` - var beamer_config = { - product_id : 'WyhkZHOU27797', - ${selector}, - ${display}, - callback: function() { - setTimeout(function() { - window.Beamer.enableFaviconNotification = false; - }, 0); - }, - };`, - }, - { - tagName: 'script', - attributes: { - type: 'text/javascript', - src: 'https://app.getbeamer.com/js/beamer-embed.js', - defer: true, - }, - }, - ], - }; - }, - }; -};