Skip to content

Commit

Permalink
Add contribute link to navbar (nodejs#7274)
Browse files Browse the repository at this point in the history
* add contribute to navbar

* delete duplicate content, add redirect
  • Loading branch information
bmuenzenmeyer authored Dec 4, 2024
1 parent d8d6c0a commit 62ce001
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 55 deletions.
7 changes: 6 additions & 1 deletion apps/site/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"link": "https://nodejs.org/docs/latest/api/",
"label": "components.containers.navBar.links.docs"
},
"contribute": {
"link": "https://github.com/nodejs/node/blob/main/CONTRIBUTING.md",
"label": "components.containers.navBar.links.contribute",
"target": "_blank"
},
"certification": {
"link": "https://training.linuxfoundation.org/openjs/",
"label": "components.containers.navBar.links.certification",
Expand Down Expand Up @@ -126,7 +131,7 @@
"label": "components.navigation.getInvolved.links.upcomingEvents"
},
"contribute": {
"link": "/about/get-involved/contribute",
"link": "https://github.com/nodejs/node/blob/main/CONTRIBUTING.md",
"label": "components.navigation.getInvolved.links.contribute"
},
"codeOfConduct": {
Expand Down
53 changes: 0 additions & 53 deletions apps/site/pages/en/about/get-involved/contribute.md

This file was deleted.

4 changes: 4 additions & 0 deletions apps/site/redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@
"source": "/:locale/get-involved/:path*",
"destination": "/:locale/about/get-involved/:path*"
},
{
"source": "/:locale/about/get-involved/contribute",
"destination": "https://github.com/nodejs/node/blob/main/CONTRIBUTING.md"
},
{
"source": "/learn",
"destination": "/en/learn"
Expand Down
3 changes: 2 additions & 1 deletion packages/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"learn": "Learn",
"security": "Security",
"certification": "Certification",
"blog": "Blog"
"blog": "Blog",
"contribute": "Contribute"
}
}
},
Expand Down

0 comments on commit 62ce001

Please sign in to comment.