We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee6b512 commit 417cf24Copy full SHA for 417cf24
1 file changed
listSidebar.ts
@@ -47,6 +47,7 @@ export function walkDocsRecursive(dir: string): StarlightSidebarList {
47
const parsed = matter(fileContent);
48
49
if (parsed.data.hideInSidebar && parsed.data.hideInSidebar === true) continue;
50
+ if (import.meta.env.PROD && parsed.data.draft && parsed.data.draft === true) continue;
51
52
result.push(String(parsed.data.slug ?? ''));
53
}
0 commit comments