Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
forsteri committed Mar 1, 2025
1 parent 19e49f7 commit 5b7152a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/build-slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ async function buildSlides() {
console.log('Starting build process...');

// 出力ディレクトリの作成
await fs.mkdir('public/slides', { recursive: true });
//await fs.mkdir('public/slides', { recursive: true });

await fs.mkdir('dist/slides', { recursive: true });

// 既存のビルド済みファイルの確認
const existingFiles = new Map();
Expand Down Expand Up @@ -74,15 +76,15 @@ async function buildSlides() {
await execCommand('@marp-team/marp-cli', [
filePath,
'-o',
`public/slides/${basename}.html`
`dist/slides/${basename}.html`
]);

// PDFの生成
console.log('- Generating PDF...');
await execCommand('@marp-team/marp-cli', [
filePath,
'-o',
`public/slides/${basename}.pdf`,
`dist/slides/${basename}.pdf`,
'--pdf'
]);

Expand Down

0 comments on commit 5b7152a

Please sign in to comment.