From 66f66ae6ba5c8228742b7b1c44080183e3649c55 Mon Sep 17 00:00:00 2001 From: Trilarion Date: Mon, 8 Jul 2019 13:29:53 +0200 Subject: [PATCH] fixed anchored links for tocs --- README.md | 36 ++++++++++---------- games/{_board game.md => _board-game.md} | 0 games/{_card game.md => _card-game.md} | 0 games/{_game engine.md => _game-engine.md} | 0 games/{_role playing.md => _role-playing.md} | 0 games/{_visual novel.md => _visual-novel.md} | 0 statistics.md | 2 +- tools/maintenance.py | 10 ++++-- 8 files changed, 27 insertions(+), 21 deletions(-) rename games/{_board game.md => _board-game.md} (100%) rename games/{_card game.md => _card-game.md} (100%) rename games/{_game engine.md => _game-engine.md} (100%) rename games/{_role playing.md => _role-playing.md} (100%) rename games/{_visual novel.md => _visual-novel.md} (100%) diff --git a/README.md b/README.md index f8d20398..963ec1ab 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,24 @@ [comment]: # (start of autogenerated content, do not edit) - **[All](games/_all.md#All)** (517) -- **[Action](games/_action.md#Action)** (69) -- **[Arcade](games/_arcade.md#Arcade)** (10) -- **[Adventure](games/_adventure.md#Adventure)** (14) -- **[Visual novel](games/_visual novel.md#Visual novel)** (4) -- **[Sports](games/_sports.md#Sports)** (8) -- **[Platform](games/_platform.md#Platform)** (2) -- **[Puzzle](games/_puzzle.md#Puzzle)** (18) -- **[Role playing](games/_role playing.md#Role playing)** (117) -- **[Simulation](games/_simulation.md#Simulation)** (33) -- **[Strategy](games/_strategy.md#Strategy)** (168) -- **[Card game](games/_card game.md#Card game)** (1) -- **[Board game](games/_board game.md#Board game)** (9) -- **[Music](games/_music.md#Music)** (3) -- **[Educational](games/_educational.md#Educational)** (3) -- **[Tool](games/_tool.md#Tool)** (15) -- **[Game engine](games/_game engine.md#Game engine)** (7) -- **[Framework](games/_framework.md#Framework)** (59) -- **[Library](games/_library.md#Library)** (22) +- **[Action](games/_action.md#action)** (69) +- **[Arcade](games/_arcade.md#arcade)** (10) +- **[Adventure](games/_adventure.md#adventure)** (14) +- **[Visual novel](games/_visual-novel.md#visual-novel)** (4) +- **[Sports](games/_sports.md#sports)** (8) +- **[Platform](games/_platform.md#platform)** (2) +- **[Puzzle](games/_puzzle.md#puzzle)** (18) +- **[Role playing](games/_role-playing.md#role-playing)** (117) +- **[Simulation](games/_simulation.md#simulation)** (33) +- **[Strategy](games/_strategy.md#strategy)** (168) +- **[Card game](games/_card-game.md#card-game)** (1) +- **[Board game](games/_board-game.md#board-game)** (9) +- **[Music](games/_music.md#music)** (3) +- **[Educational](games/_educational.md#educational)** (3) +- **[Tool](games/_tool.md#tool)** (15) +- **[Game engine](games/_game-engine.md#game-engine)** (7) +- **[Framework](games/_framework.md#framework)** (59) +- **[Library](games/_library.md#library)** (22) [comment]: # (end of autogenerated content) A list of open source games sorted by genre. The projects are at least in beta stage with a code basis that builds diff --git a/games/_board game.md b/games/_board-game.md similarity index 100% rename from games/_board game.md rename to games/_board-game.md diff --git a/games/_card game.md b/games/_card-game.md similarity index 100% rename from games/_card game.md rename to games/_card-game.md diff --git a/games/_game engine.md b/games/_game-engine.md similarity index 100% rename from games/_game engine.md rename to games/_game-engine.md diff --git a/games/_role playing.md b/games/_role-playing.md similarity index 100% rename from games/_role playing.md rename to games/_role-playing.md diff --git a/games/_visual novel.md b/games/_visual-novel.md similarity index 100% rename from games/_visual novel.md rename to games/_visual-novel.md diff --git a/statistics.md b/statistics.md index ce7dcb11..02741b12 100644 --- a/statistics.md +++ b/statistics.md @@ -1,7 +1,7 @@ [comment]: # (autogenerated content, do not edit) # Statistics -analyzed 517 entries on 2019-07-08 13:09:04 +analyzed 517 entries on 2019-07-08 13:28:23 ## State diff --git a/tools/maintenance.py b/tools/maintenance.py index 49fd1299..bbe81eb5 100644 --- a/tools/maintenance.py +++ b/tools/maintenance.py @@ -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 = []