table of content

This commit is contained in:
Rohit Tanwar
2018-01-21 14:52:18 +05:30
parent d42e30837a
commit bdf268e0a6
2 changed files with 4 additions and 4 deletions

View File

@ -19,12 +19,12 @@
<li><a href = "#shuffle"><code>shuffle</code></a></li> <li><a href = "#shuffle"><code>shuffle</code></a></li>
<li><a href = "#spread"><code>spread</code></a></li> <li><a href = "#spread"><code>spread</code></a></li>
<li><a href = "#zip"><code>zip</code></a></li> <li><a href = "#zip"><code>zip</code></a></li>
</ul> </ul><details>
### :scroll: String ### :scroll: String
<details><summary>View contents<summary> <ul><li><a href = "#count_vowels"><code>count_vowels</code></a></li> <details><summary>View contents<summary> <ul><li><a href = "#count_vowels"><code>count_vowels</code></a></li>
</ul> </ul><details>
### :heavy_division_sign: Math ### :heavy_division_sign: Math
@ -32,7 +32,7 @@
<li><a href = "#lcm"><code>lcm</code></a></li> <li><a href = "#lcm"><code>lcm</code></a></li>
<li><a href = "#max_n"><code>max_n</code></a></li> <li><a href = "#max_n"><code>max_n</code></a></li>
<li><a href = "#min_n"><code>min_n</code></a></li> <li><a href = "#min_n"><code>min_n</code></a></li>
</ul> </ul><details>
<hr></hr> <hr></hr>

View File

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