mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
Skip processing any docs with empty/no front matter instead of throwing error
This commit is contained in:
parent
68395bbe3c
commit
2585dfa1f9
2 changed files with 9 additions and 0 deletions
|
@ -106,6 +106,9 @@ function execute() {
|
|||
|
||||
if (extension === ".md" || extension === ".markdown") {
|
||||
const result = readMetadata.processMetadata(file);
|
||||
if (!result) {
|
||||
return;
|
||||
}
|
||||
|
||||
const metadata = result.metadata;
|
||||
let rawContent = result.rawContent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue