table of content

This commit is contained in:
Rohit Tanwar
2018-01-21 14:53:43 +05:30
parent a419393f2f
commit 418eb81d05
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
## Table of Content
### :books: List
<details><summary>View contents<summary> <ul><li><a href = "#chunk"><code>chunk</code></a></li>
<details><summary>View contents</summary> <ul><li><a href = "#chunk"><code>chunk</code></a></li>
<li><a href = "#compact"><code>compact</code></a></li>
<li><a href = "#count_occurences"><code>count_occurences</code></a></li>
<li><a href = "#deep_flatten"><code>deep_flatten</code></a></li>
@ -23,12 +23,12 @@
### :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></details>
### :heavy_division_sign: Math
<details><summary>View contents<summary> <ul><li><a href = "#gcd"><code>gcd</code></a></li>
<details><summary>View contents</summary> <ul><li><a href = "#gcd"><code>gcd</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 = "#min_n"><code>min_n</code></a></li>

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<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]:
toAppend += f'<li><a href = "#{snippet}"><code>{snippet}</code></a></li>\n'
toAppend += '</ul></details>\n\n'