Skip to content

Commit

Permalink
Merge pull request #15 from Genez-io/add-google-analitycs
Browse files Browse the repository at this point in the history
added gtag plugin
  • Loading branch information
Virgil993 authored Feb 12, 2024
2 parents 6e3c828 + 74f17e8 commit e902cda
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
36 changes: 23 additions & 13 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const config = {
title: "Genezio Documentation",
tagline: "Genezio Documentation",
favicon: "img/favicon.ico",

// Set the production url of your site here
url: "https://genezio.com",
// Set the /<baseUrl>/ pathname under which your site is served
Expand All @@ -31,41 +30,52 @@ const config = {
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"]
locales: ["en"],
},

plugins: ["plugin-image-zoom"],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
{
gtag: {
trackingID: "G-VR905VXGKC",
},
docs: {
sidebarPath: "./sidebars.js",
routeBasePath: "/",
// Please change this to your repo.
// Remove this to remove the "edit this page" links.,
include: ["**/*.md", "**/.*.md"] // Include dot files
include: ["**/*.md", "**/.*.md"], // Include dot files
},
blog: false,
theme: {
customCss: "./src/css/custom.css"
}
}
]
customCss: "./src/css/custom.css",
},
},
],
],

/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
themeConfig: {
// Replace with your project's social card
algolia: {
// The application ID provided by Algolia
appId: "3H42D060PD",

// Public API key: it is safe to commit it
apiKey: "9c8026978d03255b35cb6875a9a757e0",

indexName: "genezio-genez",
},
image: "img/genezio.svg",
navbar: {
title: "Genezio Documentation",
logo: {
alt: "Genezio Logo",
src: "img/favicon.ico",
srcDark: "img/genezio.svg"
}
srcDark: "img/genezio.svg",
},
},
// footer: {
// style: "dark",
Expand Down Expand Up @@ -114,9 +124,9 @@ const config = {
// },
prism: {
theme: prismThemes.oneLight,
darkTheme: prismThemes.dracula
}
}
darkTheme: prismThemes.dracula,
},
},
};

export default config;
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"dependencies": {
"@docusaurus/core": "3.1.1",
"@docusaurus/plugin-google-gtag": "^3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
Expand Down

0 comments on commit e902cda

Please sign in to comment.