INNER CODE UNIT · Python
to_md
idealo/image-quality-assessment · mkdocs/autogen.py:134
def to_md(comment_dict):
doc = ''
if 'short_description' in comment_dict:
doc += comment_dict['short_description']
doc += '\n\n'
if 'long_description' in comment_dict:
doc += md_parse_line_break(comment_dict['long_description'])
doc += '\n'
if 'Args' in comment_dict and comment_dict['Args'] is not None:
doc += '##### Args\n'
for arg, des in comment_dict['Args'].items():
doc += '* **' + arg + '**: ' + des + '\n\n'
if 'Attributes' in comment_dict and comment_dict['Attributes'] is not None:
doc += '##### Attributes\n'
for arg, des in comment_dict['Attributes'].items():