fix(docs): fix sidebar item visibility bug for category index (#10754)

This commit is contained in:
Sébastien Lorber 2024-12-10 13:06:21 +01:00 committed by GitHub
parent 4966dce36e
commit 91c0b5bf35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 50 additions and 1 deletions

View file

@ -168,6 +168,7 @@ export function isVisibleSidebarItem(
case 'category':
return (
isActiveSidebarItem(item, activePath) ||
(typeof item.href !== 'undefined' && !item.linkUnlisted) ||
item.items.some((subItem) => isVisibleSidebarItem(subItem, activePath))
);
case 'link':