From abd65aa357f29ba861bdb730d9ced08cf203763d Mon Sep 17 00:00:00 2001 From: Adam Voliva Date: Fri, 28 Jan 2022 18:43:33 -0800 Subject: [PATCH] Update docusaurus.config.js --- docusaurus.config.js | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index a76eb3ed..fd3c1ccb 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,5 +1,8 @@ module.exports = { plugins: [ + 'docusaurus2-dotenv', + 'docusaurus-plugin-hotjar', + 'docusaurus-plugin-munchkin', 'docusaurus-plugin-moesif', [ '@docusaurus/plugin-client-redirects', @@ -205,18 +208,6 @@ module.exports = { organizationName: 'symbl.ai', // Usually your GitHub org/user-name. projectName: 'docs-v1', // Usually your repo name. onBrokenLinks: 'warn', - scripts: [ - { - src: '/docs/js/hotjar.js', - async: true - }, - { - src: '/docs/js/munchkin.js', - async: true - }, - '//unpkg.com/moesif-browser-js@^1/moesif.min.js', - '/docs/js/moesif.js', - ], themeConfig: { @@ -230,7 +221,16 @@ module.exports = { // isCloseable: false, // Defaults to `true`. // }, // - + moesif: { + applicationId: process.env.MOESIF_APPLICATION_ID, + // Add other Moesif options here. + }, + hotjar: { + applicationId: process.env.HOTJAR_ID, + }, + munchkin: { + applicationId: process.env.MUNCHKIN_ID, + }, announcementBar: { id: 'new_docs_announcement', // Any value that will identify this message. content:'New Release Announcement: We have released the Symbl-Agora Marketplace extension with Agora SDK for Android applications. Head to our Integrations section to learn more.', @@ -245,12 +245,6 @@ module.exports = { disableSwitch: false, respectPrefersColorScheme: true }, - - moesif: - { - applicationId: 'eyJhcHAiOiIxOTg6NDYwIiwidmVyIjoiMi4wIiwib3JnIjoiODg6MTAyMyIsImlhdCI6MTYwNjc4MDgwMH0.HJiVyW2au4JS1Po1RkXIsuuS6uvWd2ED71xgySIyZJY', - // Add other Moesif options here. - }, "prism": { theme: require('prism-react-renderer/themes/palenight'), @@ -316,9 +310,9 @@ module.exports = { algolia: { - apiKey: '2c62f60d685fcd9d4aa97367cfc7dcf3', - indexName: 'symbl', - appId: 'BH4D9OD16A' + apiKey: process.env.ALGOLIA_KEY, + indexName: process.env.ALGOLIA_INDEX_NAME, + appId: process.env.ALGOLIA_APP_ID // contextualSearch: true, }, @@ -364,13 +358,12 @@ module.exports = { [ '@docusaurus/preset-classic', { - googleAnalytics: { - trackingID: 'UA-110963786-1', + trackingID: process.env.GOOGLE_ANALYTICS_TRAKING_ID, anonymizeIP: true, }, gtag: { - trackingID: 'GTM-KF9THZZ', + trackingID: process.env.GTAG_ID, // Optional fields. anonymizeIP: true, // Should IPs be anonymized? },