#!/usr/bin/env python3 import os EXCLURE = ['html', 'Scripts', '__pycache__', '.git'] OUTPUT_FILE = "index.html" def generer_index_general(): road_trips = [] for d in sorted(os.listdir('.')): if os.path.isdir(d) and d not in EXCLURE: # On cherche mini.html en priorité if os.path.exists(os.path.join(d, 'mini.html')): road_trips.append(d) html_content = f"""