{sidebar && (
@@ -20,6 +19,6 @@ export default function DocPageLayout({ children }: Props) {
)}
{children}
-
+
);
}
diff --git a/src/theme/DocSidebarItem/Category.tsx b/src/theme/DocSidebarItem/Category.tsx
index 3cfaba0..76ba6f1 100644
--- a/src/theme/DocSidebarItem/Category.tsx
+++ b/src/theme/DocSidebarItem/Category.tsx
@@ -8,7 +8,7 @@ import {
} from "@docusaurus/theme-common";
import {
isActiveSidebarItem,
- findFirstCategoryLink,
+ findFirstSidebarItemLink,
useDocSidebarItemsExpandedState,
isSamePath,
} from "@docusaurus/theme-common/internal";
@@ -50,7 +50,7 @@ function useCategoryHrefWithSSRFallback(
): string | undefined {
const isBrowser = useIsBrowser();
return useMemo(() => {
- if (item.href) {
+ if (item.href && !item.linkUnlisted) {
return item.href;
}
// In these cases, it's not necessary to render a fallback
@@ -58,7 +58,7 @@ function useCategoryHrefWithSSRFallback(
if (isBrowser || !item.collapsible) {
return undefined;
}
- return findFirstCategoryLink(item);
+ return findFirstSidebarItemLink(item);
}, [item, isBrowser]);
}
diff --git a/tsconfig.json b/tsconfig.json
index 6ce078a..dd47fe5 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,10 +1,9 @@
{
- "extends": "@tsconfig/docusaurus/tsconfig.json",
+ "extends": "@docusaurus/tsconfig",
"compilerOptions": {
"lib": ["ES2022", "DOM"],
"baseUrl": ".",
"resolveJsonModule": true,
- "moduleResolution": "NodeNext",
"paths": {
"@theme/*": ["src/theme/*"],
"@site/*": ["*"]