Add searchable speeches archive

This commit is contained in:
Loyyd 2026-06-11 14:19:56 +02:00
parent d74495ddef
commit 09c4548942
6 changed files with 624 additions and 1 deletions

View file

@ -15,4 +15,12 @@ for (const dir of staticDirs) {
copyDir(path.join(repoRoot, dir), path.join(distRoot, dir));
}
const speechIndexSource = path.join(distRoot, "speeches.html");
const speechIndexDestination = path.join(distRoot, "speeches", "index.html");
if (fs.existsSync(speechIndexSource)) {
fs.mkdirSync(path.dirname(speechIndexDestination), { recursive: true });
fs.copyFileSync(speechIndexSource, speechIndexDestination);
}
console.log(`Copied ${staticDirs.join(", ")} into dist/.`);