table of content

This commit is contained in:
Rohit Tanwar
2018-01-21 14:51:31 +05:30
parent 43cb0ab991
commit d42e30837a
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ toAppend = ''
tag_dict = tagger()
toAppend += '## Table of Content \n'
for category in tag_dict:
toAppend = toAppend + '### ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n <ul>'
toAppend = toAppend + '### ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n<details><summary>View contents<summary> <ul>'
for snippet in tag_dict[category]:
toAppend += f'<li><a href = "#{snippet}"><code>{snippet}</code></a></li>\n'
toAppend += '</ul>\n\n'