Skip to content

Commit

Permalink
revert nav item changes
Browse files Browse the repository at this point in the history
Holding until Sentinel tutorials are published
  • Loading branch information
zchsh committed Sep 13, 2024
1 parent 64a78f8 commit f1fc088
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,18 @@ export function getNavItems(currentProduct: ProductData): NavItem[] {

/**
* Tutorials
*
* Note: we exclude Sentinel, as it does not have tutorials yet.
* Once Sentinel tutorials are published, we can remove this exclusion.
* PR to publish Sentinel tutorials:
* https://github.com/hashicorp/tutorials/pull/2169
*/
items.push({
label: 'Tutorials',
url: `/${currentProduct.slug}/tutorials`,
})
if (currentProduct.slug !== 'sentinel') {
items.push({
label: 'Tutorials',
url: `/${currentProduct.slug}/tutorials`,
})
}

/**
* Documentation categories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,20 @@ export const generateProductLandingSidebarMenuItems = (
menuItems.push(introNavItem)
}

// Add a "Tutorials" link for all products
menuItems.push({
title: 'Tutorials',
fullPath: `/${product.slug}/tutorials`,
})
/**
* Add a "Tutorials" link for all products.
*
* Note: we exclude Sentinel, as it does not have tutorials yet.
* Once Sentinel tutorials are published, we can remove this exclusion.
* PR to publish Sentinel tutorials:
* https://github.com/hashicorp/tutorials/pull/2169
*/
if (product.slug !== 'sentinel') {
menuItems.push({
title: 'Tutorials',
fullPath: `/${product.slug}/tutorials`,
})
}

// Add "Documentation" item links for all products
menuItems.push(...docsItems)
Expand Down

0 comments on commit f1fc088

Please sign in to comment.