fixed anchored links for tocs

This commit is contained in:
Trilarion
2019-07-08 13:29:53 +02:00
parent 59b96e0878
commit 66f66ae6ba
8 changed files with 27 additions and 21 deletions

View File

@ -85,8 +85,9 @@ def update_readme_and_tocs(infos):
for keyword in recommended_keywords:
infos_filtered = [x for x in infos if keyword in x['keywords']]
title = keyword.capitalize()
file = '_{}.md'.format(keyword)
update.append('- **[{}](games/{}#{})** ({})\n'.format(title, file, title, len(infos_filtered)))
name = keyword.replace(' ', '-')
file = '_{}.md'.format(name)
update.append('- **[{}](games/{}#{})** ({})\n'.format(title, file, name, len(infos_filtered)))
create_toc(title, file, infos_filtered)
update = ''.join(update)
@ -712,6 +713,11 @@ def bzr_repo(repo):
def export_primary_code_repositories_json():
"""
"""
print('export to json for local repository update')
primary_repos = {'git':[],'svn':[],'hg':[],'bzr':[]}
unconsumed_entries = []