Skip to content

Commit

Permalink
genHTMLUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
Javadyakuza committed Aug 9, 2023
1 parent e3ee53c commit 78449f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/gen-HTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export async function generateHTMLFiles(config: Config): Promise<void> {
}
}
const filesInPath = await fs.promises.readdir(config.outputDir!);
if (filesInPath.length === 0) {
const adocFiles = filesInPath.filter((file) => file.endsWith(".adoc"));
if (adocFiles.length === 0) {
throw new Error("No adoc files found!!");
}
for (const file of filesInPath) {
Expand Down

0 comments on commit 78449f4

Please sign in to comment.