Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docusaurus.config.js #352

Merged
merged 1 commit into from
Jan 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 18 additions & 25 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = {
plugins: [
'docusaurus2-dotenv',
'docusaurus-plugin-hotjar',
'docusaurus-plugin-munchkin',
'docusaurus-plugin-moesif',
[
'@docusaurus/plugin-client-redirects',
Expand Down Expand Up @@ -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:
{

Expand All @@ -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.',
Expand All @@ -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'),
Expand Down Expand Up @@ -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,
},

Expand Down Expand Up @@ -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?
},
Expand Down