We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41d680d commit 406f2edCopy full SHA for 406f2ed
bin/generate-descriptions.ts
@@ -83,7 +83,7 @@ async function updateFrontmatter(
83
const originalContent = await fs.readFile(filePath, "utf-8");
84
85
// Parse the frontmatter
86
- const { data: frontmatter, content: mdxContent } = matter(originalContent);
+ const { data: frontmatter } = matter(originalContent);
87
88
// Check if the description already exists and is the same
89
if (frontmatter.description === description) {
@@ -231,6 +231,7 @@ async function main() {
231
try {
232
await fs.access(renderedPath);
233
} catch (error) {
234
+ console.log(error);
235
console.warn(
236
`⚠️ Rendered HTML not found for ${path.relative(process.cwd(), mdxFile)}`,
237
);
0 commit comments