def make_text(rel_links):
    """

    rel_links: list of str with the relevant links for a document.
    should be what is returned by DocSim.graph[label].

    >> make_text(['../../a.md','../b.md'])
    "link: [a.md](a.md)\nlink: [b.md](b.md)\n"

    As I have a flat hierarchy, I don't need the
    full path.
    """

    text = ""
    for link in rel_links:
        filename = link.split("/")[-1]
        text += f"link: [{filename}]({filename})\n"
    return text