Skip to content
This repository was archived by the owner on Jun 23, 2021. It is now read-only.

Commit 93fe11f

Browse files
committed
Make search field compulsory
1 parent 0b55418 commit 93fe11f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Pastel.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class Pastel
1515
'toc_footers' => [
1616
"<a href='https://github.com/knuckleswtf/pastel'>Documentation powered by Pastel</a>",
1717
],
18-
'search' => true,
1918
'logo' => false,
2019
'includes' => [],
2120
'last_updated' => '',
@@ -57,6 +56,8 @@ public function generate(
5756
$html = $document->getContent();
5857
$frontmatter = $document->getYAML();
5958

59+
$filePathsToInclude = collect([]);
60+
6061
// Parse and include optional include markdown files
6162
if (isset($frontmatter['includes'])) {
6263
$filePathsToInclude = collect($frontmatter['includes'])
@@ -121,10 +122,10 @@ protected function getPageMetadata($frontmatter, $metadataOverrides = []): array
121122
}
122123
// And override that with values from config
123124
if (isset($metadataOverrides[$key])) {
124-
125125
$metadata[$key] = $metadataOverrides[$key];
126126
}
127127
}
128+
128129
return $metadata;
129130
}
130131

0 commit comments

Comments
 (0)