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: `
- Tutorials -
- SQL - Python - GitHub - Nextjs -
-
`, - }, - { - type: "html", - value: '
', - }, - { - type: "html", - value: `
- Courses -
- git - Postman - Google -
-
`, - }, - { - type: "html", - value: '
', - }, - { - type: "html", - value: `
- Interview Prep -
- ๐ŸงฉTechnical
- ๐Ÿ’กBehavioral -
-
`, - }, - ], - }, - { - 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"] }