mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-12-26 05:02:24 +00:00
Index page
This commit is contained in:
parent
22408b16c7
commit
a64d600645
@ -16,6 +16,10 @@ class Command(BaseCommand):
|
|||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
directory = options["directory"]
|
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"),
|
for model_class, file_name in [(BD, "bd.md"), (Manga, "mangas.md"), (Roman, "romans.md"),
|
||||||
(CD, "cd.md"), (Vinyle, "vinyles.md")]:
|
(CD, "cd.md"), (Vinyle, "vinyles.md")]:
|
||||||
with open(directory + "/docs/" + file_name, "w") as f:
|
with open(directory + "/docs/" + file_name, "w") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user