This commit is contained in:
Angelos Chalaris
2019-02-02 13:56:42 +02:00
parent c867018fc3
commit a47476ff59

View File

@ -84,22 +84,21 @@ try {
output += `\n${snippet.notes}`; output += `\n${snippet.notes}`;
} }
output += misc.collapsible('Examples', snippet.codeBlocks.slice(-1)); output += misc.collapsible('Examples', snippet.codeBlocks.slice(-1));
//output += detailsQuestion("View answer", question)
output += `\n<br>${misc.link( output += `\n<br>${misc.link(
"⬆ Back to top", "⬆ Back to top",
misc.anchor("Table of Contents") misc.anchor("Table of Contents")
)}\n\n` )}\n\n`
}) })
}) });
// add static part for end // add static part for end
output += `\n${endPart}\n` output += `\n${endPart}\n`;
fs.writeFileSync("README.md", output) fs.writeFileSync("README.md", output);
} catch (err) { } catch (err) {
console.log(`${chalk.red("ERROR!")} During README generation: ${err}`) console.log(`${chalk.red("ERROR!")} During README generation: ${err}`);
process.exit(1) process.exit(1);
} }
console.log(`${chalk.green("SUCCESS!")} README file generated!`) console.log(`${chalk.green("SUCCESS!")} README file generated!`);
console.timeEnd("Builder") console.timeEnd("Builder");