Updated builder with links to top

This commit is contained in:
Angelos Chalaris
2017-12-14 13:07:19 +02:00
parent 2e2513a81e
commit 5520985d73
3 changed files with 80 additions and 3 deletions

View File

@ -45,7 +45,7 @@ try {
output += `* [${snippet[0][0].toUpperCase() + snippet[0].replace(/-/g,' ').slice(1,snippet[0].length-3)}](#${snippet[0].slice(0,snippet[0].length-3).replace(/\(/g,'').replace(/\)/g,'').toLowerCase()})\n`
output += '\n';
for(var snippet of Object.entries(snippets))
output += `${snippet[1]+'\n'}`;
output += `${snippet[1]+'\n[⬆ back to top](#table-of-contents)\n'}`;
output += `${endPart+'\n'}`;
fs.writeFileSync('README.md', output);
}