2019-01-20 11:05:14 +01:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
import re
|
2021-03-25 11:35:21 +01:00
|
|
|
|
2019-01-20 11:05:14 +01:00
|
|
|
filename = os.path.join("../", "MANIFEST.json")
|
|
|
|
with open(filename) as fp:
|
2021-03-25 11:35:21 +01:00
|
|
|
t = json.load(fp)
|
2019-01-20 11:05:14 +01:00
|
|
|
|
|
|
|
for taxo in sorted(t['taxonomies'], key=lambda k: k['name']):
|
2021-03-25 11:35:21 +01:00
|
|
|
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'])))
|