Skip to content

Commit

Permalink
fix GTM config initialization (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ereburg authored Oct 25, 2023
1 parent bda3a00 commit 722ac86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.idea
20 changes: 10 additions & 10 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer/themes/github')
const darkCodeTheme = require('prism-react-renderer/themes/dracula')

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -35,22 +35,25 @@ const config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleTagManager: {
containerId: 'GTM-NH2N6VX',
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark'
defaultMode: 'dark',
},
image: 'img/ogimage.jpg',
navbar: {
logo: {
alt: 'Vara Network',
src: 'img/logo-vara-green.svg',
srcDark: "img/logo-vara.svg"
srcDark: 'img/logo-vara.svg',
},
items: [
{
Expand Down Expand Up @@ -87,10 +90,7 @@ const config = {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
googleTagManager: {
containerId: 'GTM-NH2N6VX',
},
}),
};
}

module.exports = config;
module.exports = config

0 comments on commit 722ac86

Please sign in to comment.