Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 21 additions & 163 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -69,170 +78,20 @@ 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: {
alt: "RecodeHive Logo",
src: "img/logo.png",
},
items: [
{
type: "dropdown",
html: '<span class="nav-emoji">📚</span> Docs',
position: "left",
items: [
{
type: "html",
value: `<div class="grid grid-cols-3 gap-4 w-xl">
<a class="border-r col-span-1" href="/courses/">Tutorials</a>
<div class="grid grid-cols-4 col-span-2">
<a href="/docs/category/sql/" class="nav__icons"> <img src="/icons/sql.svg" title="SQL" alt="SQL" /> </a>
<a href="/docs/category/python/" class="nav__icons"> <img src="/icons/python.svg" title="Python" alt="Python" /> </a>
<a href="/docs/category/GitHub/" class="nav__icons" > <img src="/icons/github.svg" title="GitHub" alt="GitHub" /> </a>
<a href="/docs/category/nextjs/" class="nav__icons" > <img src="/icons/nextjs.svg" title="Nextjs" alt="Nextjs" /> </a>
</div>
</div>`,
},
{
type: "html",
value: '<hr style="margin: 0.3rem 0;">',
},
{
type: "html",
value: `<div class="grid grid-cols-3 gap-4">
<a class="border-r col-span-1" href="/courses/"> Courses </a>
<div class="grid grid-cols-4 col-span-2">
<a href="https://www.youtube.com/watch?v=GrTV59Y84S8&list=PLrLTYhoDFx-kiuFiGQqVpYYZ56pIhUW63&ab_channel=RecodeHive" class="nav__icons"> <img src="/icons/git.svg" alt="git" /> </a>
<a href="https://www.youtube.com/watch?v=O1ahDsq8DU0&list=PLrLTYhoDFx-k62rLLajSB-jeqKwLkDrkF&ab_channel=RecodeHive" class="nav__icons"> <img src="/icons/postman.svg" alt="Postman" /> </a>
<a href="/docs/category/google-student-ambassador" class="nav__icons"> <img src="https://avatars.githubusercontent.com/u/222021622?s=400&u=cb88492d19d9023cac470c3959b25285bb5abcfa&v=4" alt="Google" /> </a>
</div>
</div>`,
},
{
type: "html",
value: '<hr style="margin: 0.3rem 0;">',
},
{
type: "html",
value: `<div class="grid grid-cols-3 gap-4">
<a class="border-r col-span-1" href="#" target="_self"> Interview Prep </a>
<div class="grid grid-cols-1 col-span-2">
<a href="/interview-prep/" target="_self" class="nav__icons"> 🧩Technical </a> <br />
<a href="/interview-prep/" target="_self" class="nav__icons"> 💡Behavioral </a>
</div>
</div>`,
},
],
},
{
to: "/showcase",
html: '<span class="nav-emoji">🌍</span> Showcase',
position: "left",
},
{
to: "/dashboard",
html: '<span class="nav-emoji">📊</span> Dashboard',
position: "left",
},
{
to: "/our-sponsors/",
html: '<span class="nav-emoji">💰</span> Donate',
position: "left",
},
{
type: "dropdown",
html: '<span class="nav-emoji">👩🏻‍💻</span> Devfolio',
position: "left",
items: [
{
label: "💻GitHub Profiles",
to: "https://dev.recodehive.com/devfolio",
},
{
label: "🎖️ GitHub Badges",
to: "/badges/github-badges/",
},
],
},
{
to: "/blogs",
html: '<span class="nav-emoji">📰</span> Blogs',
position: "left",
},
{
type: "dropdown",
html: '<span class="nav-emoji">🔗</span> 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: '<div id="firebase-auth-github-navbar"></div>',
},
// {
// type: "dropdown",
// html: '<span class="nav-emoji">🏷️</span> 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,
Expand Down Expand Up @@ -285,7 +144,6 @@ const config: Config = {
},
],
],
// scripts: [],
};

export default config;
26 changes: 18 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}