diff --git a/spip2md/config.py b/spip2md/config.py index e8b510c..38f1513 100644 --- a/spip2md/config.py +++ b/spip2md/config.py @@ -19,18 +19,19 @@ class Configuration: db_host: str = "localhost" # Where is the DB db_user: str = "spip" # A DB user with read access to SPIP database db_pass: str = "password" # Password of db_user - export_languages = ("en",) # Languages that will be exported - data_dir: str = "data/" # The directory in which SPIP images & documents are stored + export_languages = ("fr", "en") # Languages that will be exported + storage_language: Optional[str] = "fr" # Language of files and directories names + data_dir: str = "IMG/" # The directory in which SPIP images & documents are stored output_dir: str = "output/" # The directory to which DB will be exported - prepend_h1: bool = True # Add the title of the article as a Markdown h1 - prepend_id: bool = True # Add the ID of object before slug + prepend_h1: bool = False # Add the title of the article as a Markdown h1 + prepend_id: bool = False # Add the ID of object before slug prepend_lang: bool = False # Add the lang of object before slug export_drafts: bool = True # Should we export drafts as draft:true articles remove_html: bool = True # Should spip2md remove every HTML tags unknown_char_replacement: str = "??" # Replaces unknown characters - clear_log: bool = False # Clear log before every run instead of appending to - clear_output: bool = False # Remove eventual output dir before running - logfile: str = "spip2md.log" # File where logs will be written, relative to wd + clear_log: bool = True # Clear log before every run instead of appending to + clear_output: bool = True # Remove eventual output dir before running + logfile: str = "log-spip2md.log" # File where logs will be written, relative to wd loglevel: str = "WARNING" # Minimum criticity of logs written in logfile logname: str = "spip2md" # Labelling of logs export_filetype: str = "md" # Extension of exported text files