From 93a9b0f30fadb8eeb281c5a7eb95ff16c0ea1bda Mon Sep 17 00:00:00 2001 From: Rohit Tanwar Date: Sun, 21 Jan 2018 14:44:04 +0530 Subject: [PATCH] table of content --- README.md | 24 ++++++++++++++++++++++++ scripts/readme.py | 7 +++++++ 2 files changed, 31 insertions(+) diff --git a/README.md b/README.md index 2c1ccb9f6..c044f70f8 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,30 @@ **Note**:- This is in no way affiliated with the original [30-seconds-of-code](https://github.com/Chalarangelo/30-seconds-of-code/). +## Table of Content +# :books: List + + +# :scroll: String + + +# :heavy_division_sign: Math + + +
## :books: List ### chunk diff --git a/scripts/readme.py b/scripts/readme.py index 70dce1b05..ebb9238eb 100644 --- a/scripts/readme.py +++ b/scripts/readme.py @@ -34,6 +34,13 @@ start = open("static-parts/readme-start.md").read() + '\n\n' end = open("static-parts/readme-end.md").read() toAppend = '' tag_dict = tagger() +toAppend += '## Table of Content \n' +for category in tag_dict: + toAppend = toAppend + '# ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n \n' +toAppend += '
\n' for category in tag_dict: toAppend = toAppend + '## ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n' for snippet in tag_dict[category]: