Add meaningful infobox

This commit is contained in:
Alexandre Dulaunoy 2017-05-05 23:15:49 +02:00
parent 9a5f8a3bfc
commit d5b6cfbe7c

View file

@ -47,7 +47,7 @@ def asciidoc(content=False, adoc=None, t='title',title=''):
if t == 'title':
output = '== ' + content
elif t == 'info':
output = "\n{}.\n\n{} {}\n".format(content, 'NOTE: ', title)
output = "\n{}.\n\n{} {} {}{}.json[*this location*] {}.\n".format(content, 'NOTE: ', title, 'is a cluster galaxy available in JSON format at https://github.com/MISP/misp-galaxy/blob/master/clusters/',title.lower(),' The JSON format can be freely reused in your application or automatically enabled in https://www.github.com/MISP/MISP[MISP].')
elif t == 'author':
output = '\nauthors:: {}\n'.format(' - '.join(content))
elif t == 'value':