Skip to content

Commit

Permalink
Hide dynamic search pages from navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 13, 2023
1 parent 1b9a915 commit 4240177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Foundation/HydeCoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function getPageClasses(): array
public function discoverPages(PageCollection $collection): void
{
if (Features::hasDocumentationSearch()) {
$collection->addPage(tap(new InMemoryPage('search.json'), function (InMemoryPage $page): void {
$collection->addPage(tap(new InMemoryPage('search.json', ['navigation' => ['hidden' => true]]), function (InMemoryPage $page): void {
$page->macro('compile', function (): string {
return GeneratesDocumentationSearchIndex::generate();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function __construct()
{
parent::__construct('search', [
'title' => 'Search',
'navigation' => ['hidden' => true]
]);
}

Expand Down

0 comments on commit 4240177

Please sign in to comment.