Skip to content

Commit b9c6514

Browse files
Shreyash-work-emsinghalkarunkarntrehanSrijan-SS02jaanbaaz
authored
Dev (#969)
* add workflow to build and push image * Feature/issues 2025 (#968) * added build and push workflow * 1. Added 2025 component for year 2025 Issues. 2. Made API endpoints Year Compatible 3. Made Index.js Reusable for coming years with minimum changes. * 1. Added Dummy data for 2025 * 1. Added labels for 2025 dmp issues --------- Co-authored-by: Karan Trehan <[email protected]> Co-authored-by: Srijan-SS02 <[email protected]> Co-authored-by: jaanbaaz <[email protected]> Co-authored-by: Shreyash <[email protected]> --------- Co-authored-by: Karun Agarwal <[email protected]> Co-authored-by: Karan Trehan <[email protected]> Co-authored-by: Srijan-SS02 <[email protected]> Co-authored-by: jaanbaaz <[email protected]> Co-authored-by: Shreyash <[email protected]>
1 parent b175947 commit b9c6514

File tree

7 files changed

+552
-35
lines changed

7 files changed

+552
-35
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ jobs:
5454
cache-from: type=gha
5555
cache-to: type=gha,mode=max
5656
tags: ${{ steps.meta.outputs.tags }}
57-
labels: ${{ steps.meta.outputs.labels }}
57+
labels: ${{ steps.meta.outputs.labels }}

docusaurus.config.js

Lines changed: 176 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,182 @@ module.exports = {
368368
to: "/docs/2024?id=Zenysis%20Technologies",
369369
},
370370
]
371-
}
371+
},
372+
{
373+
label: "2025",
374+
position: "left",
375+
to: "/docs/2025/",
376+
items: [
377+
{
378+
label: "ADC karnal",
379+
to: "/docs/2025?id=ADC%20karnal",
380+
},
381+
{
382+
label: "ADC Mahendragarh",
383+
to: "/docs/2025?id=ADC%20Mahendragarh",
384+
},
385+
{
386+
label: "ADC Rohtak",
387+
to: "/docs/2025?id=ADC%20Rohtak",
388+
},
389+
{
390+
label: "Armman",
391+
to: "/docs/2025?id=Armman",
392+
},
393+
{
394+
label: "Avanti Fellows",
395+
to: "/docs/2025?id=Avanti%20Fellows",
396+
},
397+
{
398+
label: "Beckn Collective",
399+
to: "/docs/2025?id=Beckn%20Collective",
400+
},
401+
{
402+
label: "CMC Ambala",
403+
to: "/docs/2025?id=CMC%20Ambala",
404+
},
405+
{
406+
label: "Consul Democracy",
407+
to: "/docs/2025?id=Consul%20Democracy",
408+
},
409+
{
410+
label: "COSS",
411+
to: "/docs/2025?id=COSS",
412+
},
413+
{
414+
label: "Dhwani",
415+
to: "/docs/2025?id=Dhwani",
416+
},
417+
{
418+
label: "Education Initiative",
419+
to: "/docs/2025?id=Education%20Initiative",
420+
},
421+
{
422+
label: "Flywheel",
423+
to: "/docs/2025?id=Flywheel",
424+
},
425+
{
426+
label: "Haqdarshak",
427+
to: "/docs/2025?id=Haqdarshak",
428+
},
429+
{
430+
label: "iabsis",
431+
to: "/docs/2025?id=iabsis",
432+
},
433+
{
434+
label: "IDInsight",
435+
to: "/docs/2025?id=IDInsight",
436+
},
437+
{
438+
label: "IIIT-Delhi",
439+
to: "/docs/2025?id=IIIT-Delhi",
440+
},
441+
{
442+
label: "IIIT-H RCTS",
443+
to: "/docs/2025?id=IIIT-H%20RCTS",
444+
},
445+
{
446+
label: "Medic",
447+
to: "/docs/2025?id=Medic",
448+
},
449+
{
450+
label: "MedPlat",
451+
to: "/docs/2025?id=MedPlat",
452+
},
453+
{
454+
label: "Medtronic Labs",
455+
to: "/docs/2025?id=Medtronic%20Labs",
456+
},
457+
{
458+
label: "MeitY",
459+
to: "/docs/2025?id=MeitY",
460+
},
461+
{
462+
label: "Metabrainz",
463+
to: "/docs/2025?id=Metabrainz",
464+
},
465+
{
466+
label: "Mifos",
467+
to: "/docs/2025?id=Mifos",
468+
},
469+
{
470+
label: "Mojaloop Foundation",
471+
to: "/docs/2025?id=Mojaloop%20Foundation",
472+
},
473+
{
474+
label: "MOSIP",
475+
to: "/docs/2025?id=MOSIP",
476+
},
477+
{
478+
label: "National Urban Digital Mission",
479+
to: "/docs/2025?id=National%20Urban%20Digital%20Mission",
480+
},
481+
{
482+
label: "NHA",
483+
to: "/docs/2025?id=NHA",
484+
},
485+
{
486+
label: "NSUT in collaboration with C4GT, SEETA and AIC",
487+
to: "/docs/2025?id=NSUT%20in%20collaboration%20with%20C4GT%2C%20SEETA%20and%20AIC",
488+
},
489+
{
490+
label: "OpenIMIS",
491+
to: "/docs/2025?id=OpenIMIS",
492+
},
493+
{
494+
label: "OpenNyAI",
495+
to: "/docs/2025?id=OpenNyAI",
496+
},
497+
{
498+
label: "Piramal Swasthya Management and Research Institute",
499+
to: "/docs/2025?id=Piramal%20Swasthya%20Management%20and%20Research%20Institute",
500+
},
501+
{
502+
label: "PlanetRead",
503+
to: "/docs/2025?id=PlanetRead",
504+
},
505+
{
506+
label: "Pratham Books",
507+
to: "/docs/2025?id=Pratham%20Books",
508+
},
509+
{
510+
label: "Protean",
511+
to: "/docs/2025?id=Protean",
512+
},
513+
{
514+
label: "Samanvay Foundation",
515+
to: "/docs/2025?id=Samanvay%20Foundation",
516+
},
517+
{
518+
label: "Sampatti Card",
519+
to: "/docs/2025?id=Sampatti%20Card",
520+
},
521+
{
522+
label: "ShikshaLokam",
523+
to: "/docs/2025?id=ShikshaLokam",
524+
},
525+
{
526+
label: "Statwig",
527+
to: "/docs/2025?id=Statwig",
528+
},
529+
{
530+
label: "Sugar Labs",
531+
to: "/docs/2025?id=Sugar%20Labs",
532+
},
533+
{
534+
label: "Tattle",
535+
to: "/docs/2025?id=Tattle",
536+
},
537+
{
538+
label: "Tekdi",
539+
to: "/docs/2025?id=Tekdi",
540+
},
541+
{
542+
label: "The Apprentice Project",
543+
to: "/docs/2025?id=The%20Apprentice%20Project",
544+
},
545+
],
546+
},
372547
],
373548
},
374549
footer: {

src/components/C4gt2025Description.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// src/components/C4GT2025Description.js
2+
3+
import React from "react";
4+
5+
function C4GT2025Description() {
6+
return (
7+
<div
8+
className="container padding-top--md padding-bottom--lg container-height"
9+
>
10+
<div className="row">
11+
<div className="col width">
12+
<div>
13+
<article>
14+
<nav
15+
className="theme-doc-breadcrumbs breadcrumbs-margin"
16+
aria-label="breadcrumbs"
17+
>
18+
<ul className="breadcrumbs">
19+
<li className="breadcrumbs__item">
20+
<a className="breadcrumbs__link breadcrumbs-items" href="/">
21+
🏠
22+
</a>
23+
</li>
24+
<li className="breadcrumbs__item breadcrumbs__item--active">
25+
<a
26+
className="breadcrumbs__link breadcrumbs-items cursor-pointer"
27+
>
28+
C4GT'25
29+
</a>
30+
</li>
31+
</ul>
32+
</nav>
33+
<div className="theme-doc-markdown markdown">
34+
<header>
35+
<h1>C4GT'25</h1>
36+
</header>
37+
<p>
38+
C4GT Mentoring Program 2025 is shaping up to be an exciting summer coding program, building upon the success of previous years to foster a strong community focused on developing and contributing to global digital public goods.
39+
</p>
40+
<ul>
41+
<li>
42+
An opportunity for college students and working
43+
professionals in India to dive into the GovTech space in 2025.
44+
</li>
45+
<li>Organized annually over 2 months (July-August)</li>
46+
<li>
47+
A new set of diverse and challenging GovTech problem
48+
statements will be presented for participants to tackle in 2025.
49+
</li>
50+
<li>
51+
Shortlisted contributors will receive mentorship from
52+
leading experts in the GovTech ecosystem.
53+
</li>
54+
</ul>
55+
<p>We're thrilled to have you join us in 2025! 🚀</p>
56+
</div>
57+
</article>
58+
</div>
59+
</div>
60+
</div>
61+
</div>
62+
);
63+
}
64+
65+
export default C4GT2025Description;

src/components/Sidebar.js

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// src/components/Sidebar.js
2+
13
import React from "react";
24
import { useHistory } from "react-router-dom";
35

@@ -8,7 +10,8 @@ function Sidebar({
810
setCurrentOrg,
911
currentIssue,
1012
setCurrentIssue,
11-
setCurrentTab
13+
setCurrentTab,
14+
year, // Add year prop
1215
}) {
1316
const history = useHistory();
1417
return (
@@ -17,36 +20,48 @@ function Sidebar({
1720
<ul className="theme-doc-sidebar-menu menu__list">
1821
<li className="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item">
1922
<div
20-
className={`menu__link cursor-pointer ${currentTab == "c4gt" ? "menu__link--active" : ""}`}
23+
className={`menu__link cursor-pointer ${currentTab === "c4gt" && year === "2024" ? "menu__link--active" : ""}`}
2124
onClick={() => {
2225
const newUrl = `/docs/2024/`;
23-
history.push(newUrl);
24-
setCurrentTab("c4gt")
26+
history.push(newUrl);
27+
setCurrentTab("c4gt");
2528
}}
2629
>
2730
C4GT'24
2831
</div>
2932
</li>
33+
<li className="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item">
34+
<div
35+
className={`menu__link cursor-pointer ${currentTab === "c4gt" && year === "2025" ? "menu__link--active" : ""}`}
36+
onClick={() => {
37+
const newUrl = `/docs/2025/`;
38+
history.push(newUrl);
39+
setCurrentTab("c4gt");
40+
}}
41+
>
42+
C4GT'25
43+
</div>
44+
</li>
3045
{issueData == null ? (
3146
<></>
3247
) : (
3348
issueData?.map((data, i) => {
3449
return (
3550
<li
3651
key={i}
37-
className={`theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item ${currentOrg == data?.org_name ? "" : "menu__list-item--collapsed"}`}
52+
className={`theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item ${currentOrg === data?.org_name ? "" : "menu__list-item--collapsed"}`}
3853
>
3954
<div
40-
className={`menu__list-item-collapsible cursor-pointer ${currentOrg == data?.org_name && currentIssue == null ? "menu__list-item-collapsible--active" : ""}`}
55+
className={`menu__list-item-collapsible cursor-pointer ${currentOrg === data?.org_name && currentIssue == null ? "menu__list-item-collapsible--active" : ""}`}
4156
onClick={() => {
42-
const newUrl = `/docs/2024?id=${data?.org_name}`;
57+
const newUrl = `/docs/${year}?id=${data?.org_name}`;
4358
history.push(newUrl);
4459
setCurrentOrg(() => data?.org_name);
4560
setCurrentIssue(() => null);
4661
}}
4762
>
4863
<div
49-
className={`menu__link ${currentOrg == data?.org_name ? "menu__link--active" : ""}`}
64+
className={`menu__link ${currentOrg === data?.org_name ? "menu__link--active" : ""}`}
5065
>
5166
{data?.org_name}
5267
</div>
@@ -56,7 +71,7 @@ function Sidebar({
5671
className="clean-btn menu__caret"
5772
></button>
5873
</div>
59-
{currentOrg == data?.org_name ? (
74+
{currentOrg === data?.org_name ? (
6075
<ul
6176
className="menu__list"
6277
style={{
@@ -75,9 +90,9 @@ function Sidebar({
7590
className="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"
7691
>
7792
<div
78-
className={`menu__link cursor-pointer ${currentIssue == d.id ? "menu__link--active" : ""}`}
93+
className={`menu__link cursor-pointer ${currentIssue === d.id ? "menu__link--active" : ""}`}
7994
onClick={() => {
80-
const newUrl = `/docs/2024?id=${currentOrg}&issue=${d.id}`;
95+
const newUrl = `/docs/${year}?id=${currentOrg}&issue=${d.id}`;
8196
history.push(newUrl);
8297
setCurrentIssue(() => d.id);
8398
}}
@@ -102,4 +117,4 @@ function Sidebar({
102117
);
103118
}
104119

105-
export default Sidebar;
120+
export default Sidebar;

0 commit comments

Comments
 (0)