Fixed snippet archiver build and generated README

This commit is contained in:
Angelos Chalaris
2018-01-16 16:23:25 +02:00
parent d11d20a129
commit f076160341
2 changed files with 212 additions and 1541 deletions

View File

@ -26,7 +26,7 @@ if(isTravisCI() && (process.env['TRAVIS_EVENT_TYPE'] === 'cron' || process.env['
.readdirSync(SNIPPETS_ARCHIVE_PATH)
.sort((a, b) => a.toLowerCase() - b.toLowerCase());
// Store the data read from each snippet in the appropriate object
for (const name of snippetFilenames) {
for (const name of snippetFilenames.filter(s => s !== 'README.md')) {
snippets[name] = fs.readFileSync(path.join(SNIPPETS_ARCHIVE_PATH, name), 'utf8');
}
} catch (err) {
@ -44,7 +44,7 @@ These snippets, while useful and interesting, didn\'t quite make it into the rep
## Table of Contents
`
for(const snippet of Object.entries(snippets).filter(s => s[0] !== 'README.md'))
for(const snippet of Object.entries(snippets))
output += `* [\`${snippet[0].slice(0,-3)}\`](#${snippet[0].toLowerCase().slice(0,-3)})\n`;
output += '\n---\n';
for(const snippet of Object.entries(snippets)){

File diff suppressed because it is too large Load Diff