Repository: nodejs/nodejs.dev
Pull request #2902 (2022-10-10 09:39:00)

chore(pages): removed code-learn
<!--
Please read the [Code of Conduct](https://github.com/nodejs/nodejs.dev/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guidelines](https://github.com/nodejs/nodejs.dev/blob/main/CONTRIBUTING.md) before opening a pull request.
-->

## Description

This PR removes the `Code + Learn` page as it is outdated and there weren't Code + Learn sessions long ago.

## Related Issues

- Closes https://github.com/nodejs/nodejs.dev/issues/2893


github-actions[bot]: Please find a preview at: https://staging.nodejs.dev/2902/
ovflowd: I'm proceeding to merge this as it is just content removal.

Patch:
diff --git a/content/get-involved/code-and-learn.en.md b/content/get-involved/code-and-learn.en.md
deleted file mode 100644
index f7b14717..00000000
--- a/content/get-involved/code-and-learn.en.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: code-learn
-displayTitle: 'Code + Learn'
-description: 'Code + Learn | Node.js'
-category: get-involved
----
-
-Code & Learn events allow you to get started (or go further) with Node.js core contributions. Experienced contributors help guide you through your first (or second or third or fourth) commit to Node.js core. They also are available to provide impromptu guided tours through specific areas of Node.js core source code.
-
-* [Moscow, Russia on November 6, 2019](https://medium.com/piterjs/announcement-node-js-code-learn-in-moscow-fd997241c77)
-* Shanghai, China at [COSCon](https://bagevent.com/event/5744455): November 3, 2019
-* Medellin, Colombia in June 21st & 22nd [NodeConfCo](https://colombia.nodeconf.com/)
-* [Saint-Petersburg, Russia on May 26](https://medium.com/piterjs/code-learn-ce20d330530f)
-* Bangalore, India at [Node.js - Code & Learn Meetup](https://www.meetup.com/Polyglot-Languages-Runtimes-Java-JVM-nodejs-Swift/events/256057028/): November 17, 2018
-* Kilkenny, Ireland at [NodeConfEU](https://www.nodeconf.eu/): November 4, 2018
-* Vancouver, BC at [Node Interactive](https://events.linuxfoundation.org/events/node-js-interactive-2018/): October 12, 2018
-* [Oakland on April 22, 2017](https://medium.com/the-node-js-collection/code-learn-learn-how-to-contribute-to-node-js-core-8a2dbdf9be45)
-* Shanghai at JSConf.CN: July 2017
-* Vancouver, BC at [Node Interactive](http://events.linuxfoundation.org/events/node-interactive): October 6, 2017
-* Kilkenny, Ireland at [NodeConfEU](http://www.nodeconf.eu/): November 5, 2017
-* Austin in December 2016
-* Tokyo in November 2016
-* Amsterdam in September 2016
-* Dublin and London in September 2015
diff --git a/content/get-involved/code-and-learn.fr.md b/content/get-involved/code-and-learn.fr.md
deleted file mode 100644
index fe4e7979..00000000
--- a/content/get-involved/code-and-learn.fr.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: code-learn
-displayTitle: 'Code + Apprendre'
-description: "Code + Learn | Node.js"
-category: get-involved
----
-
-Les événements Code & Learn vous permettent de vous lancer (ou d'aller plus loin) dans les contributions au noyau de Node.js. Des contributeurs expérimentés vous guideront à travers votre première (ou deuxième ou troisième ou quatrième) contribution à Node.js core. Ils sont également disponibles pour fournir des visites guidées impromptues dans des domaines spécifiques du code source de Node.js.
-
-* [Moscow, Russia on November 6, 2019](https://medium.com/piterjs/announcement-node-js-code-learn-in-moscow-fd997241c77)
-* Shanghai, China at [COSCon](https://bagevent.com/event/5744455): November 3, 2019
-* Medellin, Colombia in June 21st & 22nd [NodeConfCo](https://colombia.nodeconf.com/)
-* [Saint-Petersburg, Russia on May 26](https://medium.com/piterjs/code-learn-ce20d330530f)
-* Bangalore, India at [Node.js - Code & Learn Meetup](https://www.meetup.com/Polyglot-Languages-Runtimes-Java-JVM-nodejs-Swift/events/256057028/): November 17, 2018
-* Kilkenny, Ireland at [NodeConfEU](https://www.nodeconf.eu/): November 4, 2018
-* Vancouver, BC at [Node Interactive](https://events.linuxfoundation.org/events/node-js-interactive-2018/): October 12, 2018
-* [Oakland on April 22, 2017](https://medium.com/the-node-js-collection/code-learn-learn-how-to-contribute-to-node-js-core-8a2dbdf9be45)
-* Shanghai at JSConf.CN: July 2017
-* Vancouver, BC at [Node Interactive](http://events.linuxfoundation.org/events/node-interactive): October 6, 2017
-* Kilkenny, Ireland at [NodeConfEU](http://www.nodeconf.eu/): November 5, 2017
-* Austin in December 2016
-* Tokyo in November 2016
-* Amsterdam in September 2016
-* Dublin and London in September 2015
diff --git a/src/components/SideNavBar/index.tsx b/src/components/SideNavBar/index.tsx
index ccd8ebaa..3f270728 100644
--- a/src/components/SideNavBar/index.tsx
+++ b/src/components/SideNavBar/index.tsx
@@ -18,7 +18,6 @@ export enum SideNavBarKeys {
   privacy = 'https://privacy-policy.openjsf.org/',
   security = '/about/security/',
   getInvolved = '/get-involved/',
-  codeLearn = '/get-involved/code-learn',
   collabSummit = '/get-involved/collab-summit',
   contribute = '/get-involved/contribute',
   download = '/download/',
@@ -60,10 +59,6 @@ const sideNavBarItems: SideNavBarItem[] = [
     icon: GroupsIcon,
     isTitle: true,
   },
-  {
-    title: 'components.sideBar.items.codeLearn',
-    slug: SideNavBarKeys.codeLearn,
-  },
   {
     title: 'components.sideBar.items.collabSummit',
     slug: SideNavBarKeys.collabSummit,
diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json
index 99893147..ee749109 100644
--- a/src/i18n/locales/en.json
+++ b/src/i18n/locales/en.json
@@ -80,7 +80,6 @@
   "components.header.links.certification": "Certification",
   "components.sideBar.section.about": "About Node.js",
   "components.sideBar.section.getInvolved": "Get Involved",
-  "components.sideBar.items.codeLearn": "Code + Learn",
   "components.sideBar.items.collabSummit": "Collab Summit",
   "components.sideBar.items.contribute": "Contribute",
   "components.sideBar.section.download": "Download",
diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json
index 99893147..ee749109 100644
--- a/src/i18n/locales/es.json
+++ b/src/i18n/locales/es.json
@@ -80,7 +80,6 @@
   "components.header.links.certification": "Certification",
   "components.sideBar.section.about": "About Node.js",
   "components.sideBar.section.getInvolved": "Get Involved",
-  "components.sideBar.items.codeLearn": "Code + Learn",
   "components.sideBar.items.collabSummit": "Collab Summit",
   "components.sideBar.items.contribute": "Contribute",
   "components.sideBar.section.download": "Download",
diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json
index 27a2ed7d..a1c884f3 100644
--- a/src/i18n/locales/fr.json
+++ b/src/i18n/locales/fr.json
@@ -80,7 +80,6 @@
   "components.header.links.certification": "Certification",
   "components.sideBar.section.about": "A propos de Node.js",
   "components.sideBar.section.getInvolved": "S'impliquer",
-  "components.sideBar.items.codeLearn": "Code + Apprendre",
   "components.sideBar.items.collabSummit": "Sommet de la collaboration",
   "components.sideBar.items.contribute": "Contribuer",
   "components.sideBar.section.download": "Télécharger",
diff --git a/src/i18n/locales/zh-cn.json b/src/i18n/locales/zh-cn.json
index 6206f60f..9c75b4c8 100644
--- a/src/i18n/locales/zh-cn.json
+++ b/src/i18n/locales/zh-cn.json
@@ -80,7 +80,6 @@
   "components.header.links.certification": "认证",
   "components.sideBar.section.about": "关于 Node.js",
   "components.sideBar.section.getInvolved": "参与",
-  "components.sideBar.items.codeLearn": "Code + Learn",
   "components.sideBar.items.collabSummit": "Collab Summit",
   "components.sideBar.items.contribute": "贡献",
   "components.sideBar.section.download": "下载",
diff --git a/src/pages/get-involved/code-learn.tsx b/src/pages/get-involved/code-learn.tsx
deleted file mode 100644
index d8ca657c..00000000
--- a/src/pages/get-involved/code-learn.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { graphql } from 'gatsby';
-import ArticleLayout from '../../components/Layout/article';
-import { SideNavBarKeys } from '../../components/SideNavBar';
-import connectGraphQlArticle from '../../components/connectGraphQlArticle';
-
-export default connectGraphQlArticle(ArticleLayout, {
-  editPath: 'content/get-involved/code-learn.md',
-  sidenavKey: SideNavBarKeys.codeLearn,
-});
-
-export const query = graphql`
-  query ($locale: String!, $defaultLocale: String!) {
-    articleCurrentLanguage: mdx(
-      fields: { slug: { eq: "code-learn" }, locale: { eq: $locale } }
-    ) {
-      body
-      tableOfContents
-      frontmatter {
-        title
-        description
-        displayTitle
-      }
-      fields {
-        authors
-      }
-    }
-    articleDefaultLanguage: mdx(
-      fields: { slug: { eq: "code-learn" }, locale: { eq: $defaultLocale } }
-    ) {
-      body
-      tableOfContents
-      frontmatter {
-        title
-        description
-        displayTitle
-      }
-      fields {
-        authors
-      }
-    }
-  }
-`;


Test patch:
diff --git a/src/components/SideNavBar/__tests__/__snapshots__/index.test.tsx.snap b/src/components/SideNavBar/__tests__/__snapshots__/index.test.tsx.snap
index f703fa2f..5660d7a2 100644
--- a/src/components/SideNavBar/__tests__/__snapshots__/index.test.tsx.snap
+++ b/src/components/SideNavBar/__tests__/__snapshots__/index.test.tsx.snap
@@ -78,12 +78,6 @@ exports[`SideNavBar renders correctly 1`] = `
           />
         </svg>
       </a>
-      <a
-        class="t-body2 navigationItem"
-        href="/get-involved/code-learn"
-      >
-        Code + Learn
-      </a>
       <a
         class="t-body2 navigationItem"
         href="/get-involved/collab-summit"
diff --git a/src/components/SideNavBar/__tests__/index.test.tsx b/src/components/SideNavBar/__tests__/index.test.tsx
index 27dcdb51..5814ebc5 100644
--- a/src/components/SideNavBar/__tests__/index.test.tsx
+++ b/src/components/SideNavBar/__tests__/index.test.tsx
@@ -40,11 +40,6 @@ const navbarButtons = [
     expectedText: 'Get Involved',
     expectedHref: '/get-involved/',
   },
-  {
-    pageKey: SideNavBarKeys.codeLearn,
-    expectedText: 'Code + Learn',
-    expectedHref: '/get-involved/code-learn',
-  },
   {
     pageKey: SideNavBarKeys.collabSummit,
     expectedText: 'Collab Summit',
diff --git a/src/pages/about/__tests__/__snapshots__/governance.test.tsx.snap b/src/pages/about/__tests__/__snapshots__/governance.test.tsx.snap
index cafec85f..1dd0e994 100644
--- a/src/pages/about/__tests__/__snapshots__/governance.test.tsx.snap
+++ b/src/pages/about/__tests__/__snapshots__/governance.test.tsx.snap
@@ -81,12 +81,6 @@ exports[`Governance Page renders correctly 1`] = `
           />
         </svg>
       </a>
-      <a
-        class="t-body2 navigationItem"
-        href="/get-involved/code-learn"
-      >
-        Code + Learn
-      </a>
       <a
         class="t-body2 navigationItem"
         href="/get-involved/collab-summit"
diff --git a/src/pages/about/__tests__/__snapshots__/index.test.tsx.snap b/src/pages/about/__tests__/__snapshots__/index.test.tsx.snap
index 031810e5..9f72e82b 100644
--- a/src/pages/about/__tests__/__snapshots__/index.test.tsx.snap
+++ b/src/pages/about/__tests__/__snapshots__/index.test.tsx.snap
@@ -80,12 +80,6 @@ exports[`About page renders correctly 1`] = `
           />
         </svg>
       </a>
-      <a
-        class="t-body2 navigationItem"
-        href="/get-involved/code-learn"
-      >
-        Code + Learn
-      </a>
       <a
         class="t-body2 navigationItem"
         href="/get-involved/collab-summit"
diff --git a/src/pages/about/__tests__/__snapshots__/releases.test.tsx.snap b/src/pages/about/__tests__/__snapshots__/releases.test.tsx.snap
index 5e109d2a..0d1d9929 100644
--- a/src/pages/about/__tests__/__snapshots__/releases.test.tsx.snap
+++ b/src/pages/about/__tests__/__snapshots__/releases.test.tsx.snap
@@ -81,12 +81,6 @@ exports[`Releases page renders correctly 1`] = `
           />
         </svg>
       </a>
-      <a
-        class="t-body2 navigationItem"
-        href="/get-involved/code-learn"
-      >
-        Code + Learn
-      </a>
       <a
         class="t-body2 navigationItem"
         href="/get-involved/collab-summit"
diff --git a/src/pages/about/__tests__/__snapshots__/resources.test.tsx.snap b/src/pages/about/__tests__/__snapshots__/resources.test.tsx.snap
index 29e5b62b..6f941b76 100644
--- a/src/pages/about/__tests__/__snapshots__/resources.test.tsx.snap
+++ b/src/pages/about/__tests__/__snapshots__/resources.test.tsx.snap
@@ -313,12 +313,6 @@ exports[`Resources page renders correctly 1`] = `
               />
             </svg>
           </a>
-          <a
-            class="t-body2 navigationItem"
-            href="/get-involved/code-learn"
-          >
-            Code + Learn
-          </a>
           <a
             class="t-body2 navigationItem"
             href="/get-involved/collab-summit"
diff --git a/src/pages/about/__tests__/__snapshots__/security.test.tsx.snap b/src/pages/about/__tests__/__snapshots__/security.test.tsx.snap
index 0f6d2078..48a718bf 100644
--- a/src/pages/about/__tests__/__snapshots__/security.test.tsx.snap
+++ b/src/pages/about/__tests__/__snapshots__/security.test.tsx.snap
@@ -81,12 +81,6 @@ exports[`Security page renders correctly 1`] = `
           />
         </svg>
       </a>
-      <a
-        class="t-body2 navigationItem"
-        href="/get-involved/code-learn"
-      >
-        Code + Learn
-      </a>
       <a
         class="t-body2 navigationItem"
         href="/get-involved/collab-summit"
diff --git a/src/pages/download/__tests__/__snapshots__/package-manager.test.tsx.snap b/src/pages/download/__tests__/__snapshots__/package-manager.test.tsx.snap
index d270689e..12f58d61 100644
--- a/src/pages/download/__tests__/__snapshots__/package-manager.test.tsx.snap
+++ b/src/pages/download/__tests__/__snapshots__/package-manager.test.tsx.snap
@@ -313,12 +313,6 @@ exports[`Package Manager Page renders correctly 1`] = `
               />
             </svg>
           </a>
-          <a
-            class="t-body2 navigationItem"
-            href="/get-involved/code-learn"
-          >
-            Code + Learn
-          </a>
           <a
             class="t-body2 navigationItem"
             href="/get-involved/collab-summit"