mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-27 01:07:18 +00:00
fix: [tools] Generate index Markdown layout updated
This commit is contained in:
parent
db9a0dc04d
commit
a0804c1194
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ output = ""
|
||||||
for f in galaxies_fnames:
|
for f in galaxies_fnames:
|
||||||
with open(os.path.join(pathClusters, f)) as fr:
|
with open(os.path.join(pathClusters, f)) as fr:
|
||||||
cluster = json.load(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()
|
link = cluster["name"].replace(" ", "_").lower()
|
||||||
total = len(cluster["values"])
|
total = len(cluster["values"])
|
||||||
output = f'{output}[{cluster["name"]}](https://www.misp-project.org/galaxy.html#_{link}) - {cluster["description"]}\n'
|
output = f'{output}[{cluster["name"]}](https://www.misp-project.org/galaxy.html#_{link}) - {cluster["description"]}\n'
|
||||||
|
|
Loading…
Reference in a new issue