@@ -8,12 +8,10 @@ dotenv.config();
88
99// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1010
11-
1211const config : Config = {
1312 title : "Recode Hive" ,
1413 tagline : "Dinosaurs are cool" ,
1514 favicon : "img/favicon.ico" ,
16-
1715
1816 url : "https://recodehive.com" ,
1917 baseUrl : "/" ,
@@ -27,18 +25,18 @@ const config: Config = {
2725 // Google Analytics and Theme Scripts
2826 scripts : [
2927 {
30- src : ' /instant-theme.js' ,
28+ src : " /instant-theme.js" ,
3129 async : false ,
3230 } ,
3331 {
34- src : ' https://www.googletagmanager.com/gtag/js?id=G-W02Z2VJYCR' ,
32+ src : " https://www.googletagmanager.com/gtag/js?id=G-W02Z2VJYCR" ,
3533 async : true ,
3634 } ,
3735 {
38- src : ' /gtag-init.js' ,
36+ src : " /gtag-init.js" ,
3937 } ,
4038 {
41- src : ' /pinterest-init.js' ,
39+ src : " /pinterest-init.js" ,
4240 } ,
4341 ] ,
4442
@@ -49,23 +47,22 @@ const config: Config = {
4947
5048 presets : [
5149 [
52- ' classic' ,
50+ " classic" ,
5351 {
5452 docs : {
55- path : "docs" ,
53+ path : "docs" ,
5654 routeBasePath : "docs" ,
5755 sidebarPath : require . resolve ( "./sidebars.ts" ) ,
5856 editUrl : ( { docPath } ) =>
59- `https://github.com/recodehive/recode-website/tree/main/docs/${ docPath } ` ,
57+ `https://github.com/recodehive/recode-website/tree/main/docs/${ docPath } ` ,
6058 } ,
6159 blog : {
6260 showReadingTime : true ,
6361 feedOptions : {
6462 type : [ "rss" , "atom" ] ,
6563 xslt : true ,
6664 } ,
67- editUrl :
68- "https://github.com/recodehive/recode-website/tree/main" ,
65+ editUrl : "https://github.com/recodehive/recode-website/tree/main" ,
6966 onInlineTags : "warn" ,
7067 onInlineAuthors : "warn" ,
7168 onUntruncatedBlogPosts : "warn" ,
@@ -74,7 +71,7 @@ const config: Config = {
7471 customCss : require . resolve ( "./src/css/custom.css" ) ,
7572 } ,
7673 gtag : {
77- trackingID : ' G-W02Z2VJYCR' ,
74+ trackingID : " G-W02Z2VJYCR" ,
7875 anonymizeIP : false ,
7976 } ,
8077 } satisfies Preset . Options ,
@@ -84,14 +81,13 @@ const config: Config = {
8481 themeConfig : {
8582 image : "img/docusaurus-social-card.jpg" ,
8683 colorMode : {
87- defaultMode : ' light' ,
84+ defaultMode : " light" ,
8885 disableSwitch : false ,
8986 respectPrefersColorScheme : false , // Let users manually control theme
9087 } ,
9188 navbar : {
92- title :"Recode Hive" ,
89+ title : "Recode Hive" ,
9390 logo : {
94-
9591 alt : "RecodeHive Logo" ,
9692 src : "img/logo.png" ,
9793 } ,
@@ -104,14 +100,14 @@ const config: Config = {
104100 {
105101 type : "html" ,
106102 value : `<div class="grid grid-cols-3 gap-4 w-xl">
107- <a class="border-r col-span-1" href="/docs/">Tutorials</a>
108- <div class="grid grid-cols-4 col-span-2">
109- <a href="/docs/sql/intro-sql" class="nav__icons"> <img src="/icons/sql.svg" title="SQL" alt="SQL" /> </a>
110- <a href="/docs/python/intro-python" class="nav__icons"> <img src="/icons/python.svg" title="Python" alt="Python" /> </a>
111- <a href="/docs/GitHub/intro-github" class="nav__icons" > <img src="/icons/github.svg" title="GitHub" alt="GitHub" /> </a>
112- <a href="/docs/Nextjs/intro-nextjs" class="nav__icons" > <img src="/icons/nextjs.svg" title="Nextjs" alt="Nextjs" /> </a>
113- </div>
114- </div>` ,
103+ <a class="border-r col-span-1" href="/docs/">Tutorials</a>
104+ <div class="grid grid-cols-4 col-span-2">
105+ <a href="/docs/sql/intro-sql" class="nav__icons"> <img src="/icons/sql.svg" title="SQL" alt="SQL" /> </a>
106+ <a href="/docs/python/intro-python" class="nav__icons"> <img src="/icons/python.svg" title="Python" alt="Python" /> </a>
107+ <a href="/docs/GitHub/intro-github" class="nav__icons" > <img src="/icons/github.svg" title="GitHub" alt="GitHub" /> </a>
108+ <a href="/docs/Nextjs/intro-nextjs" class="nav__icons" > <img src="/icons/nextjs.svg" title="Nextjs" alt="Nextjs" /> </a>
109+ </div>
110+ </div>` ,
115111 } ,
116112 {
117113 type : "html" ,
@@ -120,13 +116,13 @@ const config: Config = {
120116 {
121117 type : "html" ,
122118 value : `<div class="grid grid-cols-3 gap-4">
123- <a class="border-r col-span-1" href="/courses/">Courses</a>
124- <div class="grid grid-cols-4 col-span-2">
125- <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>
126- <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>
127- <a href="/docs/google-campus-ambassador-part-1" class="nav__icons"> <img src="https://avatars.githubusercontent.com/u/222021622?s=400&u=cb88492d19d9023cac470c3959b25285bb5abcfa&v=4" alt="Google" /> </a>
128- </div>
129- </div>` ,
119+ <a class="border-r col-span-1" href="/courses/">Courses</a>
120+ <div class="grid grid-cols-4 col-span-2">
121+ <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>
122+ <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>
123+ <a href="/docs/google-campus-ambassador-part-1" class="nav__icons"> <img src="https://avatars.githubusercontent.com/u/222021622?s=400&u=cb88492d19d9023cac470c3959b25285bb5abcfa&v=4" alt="Google" /> </a>
124+ </div>
125+ </div>` ,
130126 } ,
131127 {
132128 type : "html" ,
@@ -135,12 +131,12 @@ const config: Config = {
135131 {
136132 type : "html" ,
137133 value : `<div class="grid grid-cols-3 gap-4">
138- <a class="border-r col-span-1" href="/interview-prep/" target="_self">Interview Prep</a>
139- <div class="grid grid-cols-1 col-span-2">
140- <a href="/interview-prep/" target="_self" class="nav__icons"> 🧩Technical </a>
141- <a href="/interview-prep/" target="_self" class="nav__icons"> 💡Behavioral </a>
142- </div>
143- </div>` ,
134+ <a class="border-r col-span-1" href="/interview-prep/" target="_self">Interview Prep</a>
135+ <div class="grid grid-cols-1 col-span-2">
136+ <a href="/interview-prep/" target="_self" class="nav__icons"> 🧩Technical </a>
137+ <a href="/interview-prep/" target="_self" class="nav__icons"> 💡Behavioral </a>
138+ </div>
139+ </div>` ,
144140 } ,
145141 ] ,
146142 } ,
@@ -171,7 +167,7 @@ const config: Config = {
171167 {
172168 label : "🎖️ GitHub Badges" ,
173169 to : "/badges/github-badges/" ,
174- } ,
170+ } ,
175171 ] ,
176172 } ,
177173 {
@@ -215,47 +211,10 @@ const config: Config = {
215211 position : "right" ,
216212 value : '<div id="firebase-auth-github-navbar"></div>' ,
217213 } ,
218- // {
219- // type: "dropdown",
220- // html: '<span class="nav-emoji">🏷️</span> Tags',
221- // position: "left",
222- // items: [
223- // {
224- // label: "🏷️ Tutorial Tags 📚",
225- // to: "/docs/tags/",
226- // activeBaseRegex: "/docs/tags/",
227- // },
228- // {
229- // label: "🏷️ Courses Tags 🎓",
230- // to: "/courses/tags/",
231- // activeBaseRegex: "/courses/tags/",
232- // },
233- // {
234- // label: "🏷️ DSA Tags 🧠",
235- // to: "/dsa/tags/",
236- // activeBaseRegex: "/dsa/tags/",
237- // },
238- // ],
239- // },
240-
241- // {
242- // href: "https://github.com/codeharborhub/codeharborhub",
243- // position: "right",
244- // className: "header-github-link",
245- // "aria-label": "GitHub repository",
246- // },
247- // {
248- // href: "https://www.codeharborhub.live/register",
249- // position: "right",
250- // className: "header-signup-link",
251- // "aria-label": "Auth",
252- // label: "Auth",
253- // },
254214 ] ,
255- // hideOnScroll: true,
256215 } ,
257216 footer : {
258- style : ' dark' ,
217+ style : " dark" ,
259218 links : [ ] ,
260219 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } recodehive. Built with Docusaurus.` ,
261220 } ,
@@ -296,22 +255,12 @@ const config: Config = {
296255 disableInDev : false ,
297256 } ,
298257 ] ,
299- // Commented out to use TSX-based community page instead
300- // [
301- // "@docusaurus/plugin-content-docs",
302- // {
303- // id: "community",
304- // path: "community",
305- // routeBasePath: "community",
306- // sidebarPath: require.resolve("./sidebarsCommunity.js"),
307- // remarkPlugins: [remarkMath],
308- // rehypePlugins: [rehypeKatex],
309- // showLastUpdateAuthor: true,
310- // showLastUpdateTime: true,
311- // },
312- // ],
313258 ] ,
314- // scripts: [],
259+
260+ // ✅ Add this customFields object to expose the token to the client-side
261+ customFields : {
262+ gitToken : process . env . DOCUSAURUS_GIT_TOKEN ,
263+ } ,
315264} ;
316265
317- export default config ;
266+ export default config ;
0 commit comments