This commit is contained in:
Rohit Tanwar
2018-01-21 13:17:27 +05:30
parent 24ade51ca4
commit a3b39ee193
2 changed files with 19 additions and 4 deletions

View File

@ -1,4 +1,19 @@
import os
EMOJIS = {
'adapter': ':electric_plug:',
'list': ':books:',
'browser': ':globe_with_meridians:',
'date': ':stopwatch:',
'function': ':control_knobs:',
'logic': ':crystal_ball:',
'math': ':heavy_division_sign:',
'media': ':tv:',
'node': ':package:',
'object': 'card_file_box',
'string': ':scroll:',
'type': ':page_with_curl:',
'utility': ':wrench:'
}
def tagger():
tag_data = open('tag_database').read()
tag_dict = {}
@ -17,7 +32,7 @@ end = open("static-parts/readme-end.md").read()
toAppend = ''
tag_dict = tagger()
for category in tag_dict:
toAppend = toAppend + '# ' + category +'\n\n'
toAppend = toAppend + '# ' + EMOJIS[category] + ' ' + category +'\n\n'
for snippet in tag_dict[category]:
someFile = open("snippets/" + snippet + '.md')
fileData = someFile.read()