Skip to content

Commit bc456d6

Browse files
committed
fix: don't index hidden pages
1 parent 3b920f8 commit bc456d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Web/Documentation/DocumentationIndexer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public function __invoke(Version $version): ImmutableArray
4848
$title = get_by_key($markdown->getFrontMatter(), 'title');
4949
$keywords = get_by_key($markdown->getFrontMatter(), 'keywords');
5050

51+
if (get_by_key($markdown->getFrontMatter(), 'hidden') === true) {
52+
return [];
53+
}
54+
5155
$main = new Command(
5256
type: Type::URI,
5357
title: $title,

0 commit comments

Comments
 (0)