About page

This commit is contained in:
Angelos Chalaris
2018-09-08 14:47:48 +03:00
parent bf358d9268
commit f7f09dcd76
19 changed files with 291 additions and 531 deletions

View File

@ -122,8 +122,6 @@ try {
'utf8'
);
archivedEndPart = fs.readFileSync(path.join(staticPartsPath, 'archived-page-end.html'), 'utf8');
indexStaticFile = fs.readFileSync(path.join(staticPartsPath, 'index.html'), 'utf8');
} catch (err) {
// Handle errors (hopefully not!)
console.log(`${chalk.red('ERROR!')} During static part loading: ${err}`);
@ -437,6 +435,14 @@ try {
console.log(`${chalk.red('ERROR!')} During archive.html generation: ${err}`);
process.exit(1);
}
// Copy about.html
try {
fs.copyFileSync(path.join(staticPartsPath, 'about.html'), path.join(docsPath, 'about.html'));
console.log(`${chalk.green('SUCCESS!')} about.html file copied!`);
} catch (err) {
console.log(`${chalk.red('ERROR!')} During about.html copying: ${err}`);
process.exit(1);
}
// Log the time taken
console.timeEnd('Webber');