Skip to content

Commit 406f2ed

Browse files
committed
fixes
1 parent 41d680d commit 406f2ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/generate-descriptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function updateFrontmatter(
8383
const originalContent = await fs.readFile(filePath, "utf-8");
8484

8585
// Parse the frontmatter
86-
const { data: frontmatter, content: mdxContent } = matter(originalContent);
86+
const { data: frontmatter } = matter(originalContent);
8787

8888
// Check if the description already exists and is the same
8989
if (frontmatter.description === description) {
@@ -231,6 +231,7 @@ async function main() {
231231
try {
232232
await fs.access(renderedPath);
233233
} catch (error) {
234+
console.log(error);
234235
console.warn(
235236
`⚠️ Rendered HTML not found for ${path.relative(process.cwd(), mdxFile)}`,
236237
);

0 commit comments

Comments
 (0)