diff --git a/media/management/commands/export_markdown_site.py b/media/management/commands/export_markdown_site.py index 615b3fc..026c5be 100644 --- a/media/management/commands/export_markdown_site.py +++ b/media/management/commands/export_markdown_site.py @@ -16,6 +16,10 @@ class Command(BaseCommand): def handle(self, *args, **options): directory = options["directory"] + with open(directory + "/docs/index.md", "w") as f: + f.write("# Media de la Mediatek\n\n\n") + f.write("Ce site répertorie l'intégralité des media présents à la Mediatek de l'ENS Paris-Saclay.\n") + for model_class, file_name in [(BD, "bd.md"), (Manga, "mangas.md"), (Roman, "romans.md"), (CD, "cd.md"), (Vinyle, "vinyles.md")]: with open(directory + "/docs/" + file_name, "w") as f: