Generate a markdown sidebar from a directory content