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, - }, - }, - ], - }; - }, - }; -};