Generate markdown document from discovery file.