def gen_entry(name, metadata):
    """Generate a doctsring for field 'name' unsing its metadata dict"""
    unit = metadata['unit'] if metadata['unit'] else '-'
    docstr = """- **{:}**: {:} [{:}]\n
    - output file: {:}.pvd\n""".format(name, metadata['name'], unit, metadata['filename'])
    return docstr