mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
resume: rename EN output to resume-en.pdf, show bare filenames in the dialog (spec-v3 follow-up 24)
This commit is contained in:
1 parent
61a01e25ca
commit
33fa6ebefd
6 files changed
+11
-10
No files matched your search
@@ -235,8 +235,7 @@ if (previewMode) {
|
||||
} else {
|
||||
const page = await browser.newPage();
|
||||
for (const lang of langs) {
|
||||
const langSuffix = lang === 'en' ? '' : `-${lang}`;
|
||||
const outputPath = join(ROOT, `dist/resume${langSuffix}.pdf`);
|
||||
const outputPath = join(ROOT, `dist/resume-${lang}.pdf`);
|
||||
mkdirSync(dirname(outputPath), { recursive: true });
|
||||
await page.setContent(pages[lang]);
|
||||
await page.pdf({
|
||||
@@ -246,7 +245,7 @@ if (previewMode) {
|
||||
preferCSSPageSize: true,
|
||||
tagged: true,
|
||||
});
|
||||
console.log(`resume${langSuffix}.pdf generated at ${outputPath} [${lang}]`);
|
||||
console.log(`resume-${lang}.pdf generated at ${outputPath} [${lang}]`);
|
||||
}
|
||||
await browser.close();
|
||||
}
|
||||
Reference in new issue
Block a user