#!/bin/python3 # import argparse from utils import * from website_config import configs_sites # parser = argparse.ArgumentParser(description="Générer un site Web à partir de fichiers HTML.") # parser.add_argument("blog_name", help="Le chemin vers le dossier contenant les fichiers HTML.") # parser.add_argument("--title", "-t", default="Mon site Web", help="Le titre du site Web.") # parser.add_argument("--style", default="templates/style_general.css", help="Le chemin vers le fichier de style CSS.") # args = parser.parse_args() # print(configs_sites[args.blog_name]['DESCRIPTION']) # tester la génération de slug sur un fichier org donné basename_file = '20111126170159_cipherbliss_blog_120_bienvenue-sur-informageek.org' found_slug = detect_slug_in_file_basename(basename_file) print('slug found:',found_slug) basename_file = '20200803124344_blog_cil_gometz_11_ecrire-une-comptine-en-python-bonjour-le-jour.org' found_slug = detect_slug_in_file_basename(basename_file) print('slug found:',found_slug) basename_file = '20241115010205_cipherbliss_blog_suivi-de-rédaction-de-livre-orgmode.org' found_slug = detect_slug_in_file_basename(basename_file) print('slug found:',found_slug) basename_file = '20061125015032_tkblog_864_pourquoi-mee2-est-il-une-flamme.org' found_slug = detect_slug_in_file_basename(basename_file) print('slug found:',found_slug)