Minor update to the build script

This commit is contained in:
Angelos Chalaris
2017-12-28 11:51:35 +02:00
parent 3bc016e840
commit a665c0b33e

View File

@ -79,7 +79,7 @@ try {
for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag)){
let data = snippets[taggedSnippet[0]+'.md'];
data = data.slice(0,data.lastIndexOf('```js')) + '<details>\n<summary>Examples</summary>\n\n' + data.slice(data.lastIndexOf('```js'),data.lastIndexOf('```')) + data.slice(data.lastIndexOf('```')) + '\n</details>\n';
output += `\n${data+'\n[⬆ back to top](#table-of-contents)\n'}`;
output += `\n${data+'\n\n[⬆ Back to top](#table-of-contents)\n'}`;
}
}
}