From a0804c11948b7e9e55f1bcfcad96a3ebaf9d6164 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Fri, 7 Jan 2022 16:55:29 +0100 Subject: [PATCH] fix: [tools] Generate index Markdown layout updated --- tools/generate-index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/generate-index.py b/tools/generate-index.py index 948db0e..6ea6cfd 100755 --- a/tools/generate-index.py +++ b/tools/generate-index.py @@ -27,11 +27,11 @@ output = "" for f in galaxies_fnames: with open(os.path.join(pathClusters, f)) as fr: cluster = json.load(fr) - output = f'{output}\n# {cluster["name"]}\n\n' + output = f'{output}\n## {cluster["name"]}\n\n' link = cluster["name"].replace(" ", "_").lower() total = len(cluster["values"]) output = f'{output}[{cluster["name"]}](https://www.misp-project.org/galaxy.html#_{link}) - {cluster["description"]}\n' - output = f'{output}\nCategory: *{cluster["category"]}* - source: *{cluster["source"]}* - total: *{total}* elements \n' + output = f'{output}\nCategory: *{cluster["category"]}* - source: *{cluster["source"]}* - total: *{total}* elements\n' output = f'{output}\n[[HTML](https://www.misp-project.org/galaxy.html#_{link})] - [[JSON](https://github.com/MISP/misp-galaxy/blob/main/clusters/{f})]\n' print(output)