Add searchable speeches archive
This commit is contained in:
parent
d74495ddef
commit
09c4548942
6 changed files with 624 additions and 1 deletions
|
|
@ -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/.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue