Updated postbuild to remove trailing .md

This commit is contained in:
Relism
2025-02-27 23:43:16 +01:00
parent d12f8571b7
commit 045ade5334
+1 -1
View File
@@ -101,7 +101,7 @@ const generateImagesForProjects = async () => {
const files = getMarkdownFiles(projectPath); const files = getMarkdownFiles(projectPath);
for (const filePath of files) { for (const filePath of files) {
const relativePath = path.relative(projectPath, filePath); const relativePath = path.relative(projectPath, filePath);
const fileName = `${project}-${relativePath.replace(/[/\\]/g, '-')}.png`; let fileName = `${project}-${relativePath.replace(/[/\\]/g, '-').replace('.md', '')}.png`;
const outputImagePath = path.join(outputImageDir, fileName); const outputImagePath = path.join(outputImageDir, fileName);
console.log(`Generating: ${fileName}`); console.log(`Generating: ${fileName}`);
await generateBannerCard(filePath, outputImagePath); await generateBannerCard(filePath, outputImagePath);