Skip to content

Commit

Permalink
ENOENT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LordKa0S committed Jul 18, 2021
1 parent 8f5fef7 commit 6ba72e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/md-to-partials.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import marked from "marked";
import { readdir, readFile, writeFile } from "fs/promises";
import { mkdir, readdir, readFile, writeFile } from "fs/promises";
import { join } from "path";

const mdDirPath = "markdown";

const genPartialsPath = "handlebars/partials/gen";

await mkdir(genPartialsPath, { recursive: true });

marked.setOptions({
headerIds: false,
});
Expand Down

0 comments on commit 6ba72e0

Please sign in to comment.