diff --git a/docusaurus.config.js b/docusaurus.config.js index 1c9a7763..75dc432f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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 // pathname under which your site is served @@ -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", @@ -114,9 +124,9 @@ const config = { // }, prism: { theme: prismThemes.oneLight, - darkTheme: prismThemes.dracula - } - } + darkTheme: prismThemes.dracula, + }, + }, }; export default config; diff --git a/package-lock.json b/package-lock.json index 449b159a..512bac67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "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", diff --git a/package.json b/package.json index 83da161f..4f5a95ae 100644 --- a/package.json +++ b/package.json @@ -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",