From a64d6006451a9dffabd7c800601c17e91565a9fd Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 26 Oct 2020 14:44:25 +0100 Subject: [PATCH] Index page --- media/management/commands/export_markdown_site.py | 4 ++++ 1 file changed, 4 insertions(+) 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: