From 24e95b149bb7b6f93856857842474d0ab68c0f40 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Thu, 25 Mar 2021 11:35:21 +0100 Subject: [PATCH] fix: [tools] website and README list generator are now the same --- tools/website-genlist.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/website-genlist.py b/tools/website-genlist.py index 4b5577c..fa56339 100644 --- a/tools/website-genlist.py +++ b/tools/website-genlist.py @@ -1,9 +1,12 @@ import json import os import re + filename = os.path.join("../", "MANIFEST.json") with open(filename) as fp: - t = json.load(fp) + t = json.load(fp) for taxo in sorted(t['taxonomies'], key=lambda k: k['name']): - print ("[{}](https://github.com/MISP/misp-taxonomies/tree/master/{}):\n: {}[HTML](https://www.misp-project.org/taxonomies.html#_{})\n".format(taxo['name'], taxo['name'], taxo['description'], re.sub(r'-', '_',taxo['name']))) + print("### {}".format(taxo['name'])) + print() + print("[{}](https://github.com/MISP/misp-taxonomies/tree/main/{}) :\n{} [Overview](https://www.misp-project.org/taxonomies.html#_{})\n".format(taxo['name'], taxo['name'], taxo['description'], re.sub(r'-', '_',taxo['name'])))