Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Add Community nav item
Browse files Browse the repository at this point in the history
  • Loading branch information
PietiKinnunen committed Oct 4, 2023
1 parent 8dc0885 commit 50575f6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
27 changes: 27 additions & 0 deletions components/Menu/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,33 @@ const menu: MenuCategoryProps[] = [
href: "/pricing/",
testId: "pricing",
},
{
title: "Community",
href: "/community/",
testId: "community",
children: [
{
title: "Getting Started with OSS",
href: "/docs/",
},
{
title: "Downloads",
href: "/download/",
},
{
title: "Community Slack",
href: "/community-slack/",
},
{
title: "GitHub Discussions",
href: "https://github.com/gravitational/teleport/discussions",
},
{
title: "Podcasts",
href: "/resources/podcast/",
},
],
},
];

export default menu;
30 changes: 27 additions & 3 deletions tests/data/navbar-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,33 @@ export const navigationData: NavbarData = [
isExternal: true,
},
{
button: { title: "", testId: "search" },
href: "https://goteleport.com/search/",
isExternal: true,
button: { title: "Community", testId: "community" },
menu: {
title: "Community",
testId: "community-menu",
children: [
{
title: "Getting Started with OSS",
href: "/docs/",
},
{
title: "Downloads",
href: "/download/",
},
{
title: "Community Slack",
href: "/community-slack/",
},
{
title: "GitHub Discussions",
href: "https://github.com/gravitational/teleport/discussions",
},
{
title: "Podcasts",
href: "/resources/podcast/",
},
],
},
},
{
button: { title: "Downloads", testId: "downloads" },
Expand Down

0 comments on commit 50575f6

Please sign in to comment.