diff --git a/packages/framework/src/Framework/Actions/GeneratesDocumentationSearchIndex.php b/packages/framework/src/Framework/Actions/GeneratesDocumentationSearchIndex.php index dfc7c4f95d8..64bbb7d8e67 100644 --- a/packages/framework/src/Framework/Actions/GeneratesDocumentationSearchIndex.php +++ b/packages/framework/src/Framework/Actions/GeneratesDocumentationSearchIndex.php @@ -106,6 +106,6 @@ protected function getPath(): string protected function getPagesToExcludeFromSearch(): array { - return array_merge(Config::getArray('docs.exclude_from_search', []), ['search']); + return array_merge(Config::getArray('docs.exclude_from_search', []), Config::getBool('docs.create_search_page', true) ? ['search'] : []); } }