From 97f4851059e58929a82561f58e5a4467943b4cbc Mon Sep 17 00:00:00 2001 From: sajeetharan Date: Tue, 8 Oct 2024 15:58:20 +0530 Subject: [PATCH] Fixes --- docusaurus.config.js | 24 +++++-------------- package.json | 1 + .../gallery/ShowcaseCardPanel/index.tsx | 2 +- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 6777322..48be178 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -144,27 +144,15 @@ const config = { // CONFIG: Set presets for chosen theme presets: [ [ - "classic", - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - // CONFIG: docs = collections of pages, tutorials, documentation - // See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs - // FIXME: TEMPORARILY DISABLE DOCS - // docs: { sidebarPath: require.resolve("./sidebars.js"), }, - // docs: false, - docs: false, - - // CONFIG: blog = timestamped pages, tags, site feed - // See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog - // FIXME: TEMPORARILY DISABLE BLOG - blog: false, - - // CONFIG: theme = currently using `classic` - // See: https://docusaurus.io/docs/api/themes/@docusaurus/theme-classic + "@docusaurus/preset-classic", + { + gtag: { + trackingID: "G-CNSKHL41CT", + }, theme: { customCss: require.resolve("./src/css/custom.css"), }, - }), + }, ], ], }; diff --git a/package.json b/package.json index 755109c..ab480a6 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "@popperjs/core": "^2.11.8", "react-helmet": "^6.1.0", "scheduler": "^0.20.2", + "@docusaurus/plugin-google-gtag": "^2.4.3", "search-insights": "^2.11.0" } } diff --git a/src/components/gallery/ShowcaseCardPanel/index.tsx b/src/components/gallery/ShowcaseCardPanel/index.tsx index 2c960f0..c777502 100644 --- a/src/components/gallery/ShowcaseCardPanel/index.tsx +++ b/src/components/gallery/ShowcaseCardPanel/index.tsx @@ -36,7 +36,7 @@ export default function ShowcaseCardPanel({ const vectorDatabaseTags = tagObjectsSorted.filter((tag) => tag.type === "VectorDatabase"); const azureTags = tagObjectsSorted.filter((tag) => tag.type === "Azure"); const resourceTypeTags = tagObjectsSorted.filter((tag) => tag.type === "ResourceType"); - //console.log("resourceTypeTags", resourceTypeTags); + return ( <>