Updated postbuild to remove trailing .md
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user