diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index fdc0673..01f4be3 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -20,7 +20,11 @@ const config: Config = {
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
- // Google Analytics
+ i18n: {
+ defaultLocale: "en",
+ locales: ["en"],
+ },
+
scripts: [
{
src: 'https://www.googletagmanager.com/gtag/js?id=G-W02Z2VJYCR',
@@ -32,13 +36,18 @@ const config: Config = {
{
src: '/pinterest-init.js',
},
+ {
+ content: `
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-W02Z2VJYCR', {
+ debug_mode: ${process.env.NODE_ENV !== 'production' ? 'true' : 'false'}
+ });
+ `,
+ },
],
- i18n: {
- defaultLocale: "en",
- locales: ["en"],
- },
-
presets: [
[
'classic',
@@ -69,6 +78,11 @@ const config: Config = {
themeConfig: {
image: "img/docusaurus-social-card.jpg",
+ colorMode: {
+ defaultMode: "light", // You can change this to "dark" if preferred
+ disableSwitch: false, // Enable the toggle switch
+ respectPrefersColorScheme: true,
+ },
navbar: {
title: "Recode Hive",
logo: {
@@ -76,163 +90,8 @@ const config: Config = {
src: "img/logo.png",
},
items: [
- {
- type: "dropdown",
- html: '๐ Docs',
- position: "left",
- items: [
- {
- type: "html",
- value: `
`,
- },
- {
- type: "html",
- value: '
',
- },
- {
- type: "html",
- value: ``,
- },
- {
- type: "html",
- value: '
',
- },
- {
- type: "html",
- value: ``,
- },
- ],
- },
- {
- to: "/showcase",
- html: '๐ Showcase',
- position: "left",
- },
- {
- to: "/dashboard",
- html: '๐ Dashboard',
- position: "left",
- },
- {
- to: "/our-sponsors/",
- html: '๐ฐ Donate',
- position: "left",
- },
- {
- type: "dropdown",
- html: '๐ฉ๐ปโ๐ป Devfolio',
- position: "left",
- items: [
- {
- label: "๐ปGitHub Profiles",
- to: "https://dev.recodehive.com/devfolio",
- },
- {
- label: "๐๏ธ GitHub Badges",
- to: "/badges/github-badges/",
- },
- ],
- },
- {
- to: "/blogs",
- html: '๐ฐ Blogs',
- position: "left",
- },
- {
- type: "dropdown",
- html: '๐ More',
- position: "left",
- items: [
- {
- label: "๐ E-books",
- to: "https://learn.recodehive.com/datascience",
- },
- {
- label: "๐ฃ๏ธ Roadmap",
- to: "#",
- },
- {
- label: "๐ค Community",
- to: "/community",
- },
- {
- label: "๐บ Broadcast",
- to: "/broadcasts/",
- },
- {
- label: "๐๏ธ Podcast",
- to: "/podcasts/",
- },
- ],
- },
- {
- type: "search",
- position: "right",
- },
- {
- type: "html",
- position: "right",
- value: '',
- },
- // {
- // type: "dropdown",
- // html: '๐ท๏ธ Tags',
- // position: "left",
- // items: [
- // {
- // label: "๐ท๏ธ Tutorial Tags ๐",
- // to: "/docs/tags/",
- // activeBaseRegex: "/docs/tags/",
- // },
- // {
- // label: "๐ท๏ธ Courses Tags ๐",
- // to: "/courses/tags/",
- // activeBaseRegex: "/courses/tags/",
- // },
- // {
- // label: "๐ท๏ธ DSA Tags ๐ง ",
- // to: "/dsa/tags/",
- // activeBaseRegex: "/dsa/tags/",
- // },
- // ],
- // },
-
- // {
- // href: "https://github.com/codeharborhub/codeharborhub",
- // position: "right",
- // className: "header-github-link",
- // "aria-label": "GitHub repository",
- // },
- // {
- // href: "https://www.codeharborhub.live/register",
- // position: "right",
- // className: "header-signup-link",
- // "aria-label": "Auth",
- // label: "Auth",
- // },
+ // Add your navbar items here
],
- // hideOnScroll: true,
},
prism: {
theme: prismThemes.github,
@@ -285,7 +144,6 @@ const config: Config = {
},
],
],
- // scripts: [],
};
export default config;
diff --git a/tsconfig.json b/tsconfig.json
index cb476e3..741a751 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,13 +1,23 @@
{
- // This file is not used in compilation. It is here just for a nice editor experience.
- "extends": "@docusaurus/tsconfig",
"compilerOptions": {
- "jsx": "react",
- "baseUrl": ".",
+ "target": "es2020",
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "jsx": "react-jsx",
+ "strict": true,
"esModuleInterop": true,
- "moduleResolution": "node",
- "resolveJsonModule": true
-
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ "baseUrl": ".",
+ "paths": {
+ "@site/*": ["./*"],
+ "@docusaurus/*": ["./node_modules/@docusaurus/core/lib/*"],
+ "@theme/*": [".docusaurus/theme-classic/lib/theme/*"]
+ }
},
- "exclude": [".docusaurus", "build"]
+ "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"],
+ "exclude": ["node_modules", ".docusaurus", "build"]
}