better defaults & add storage language

This commit is contained in:
Guilhem Fauré 2023-06-07 15:39:09 +02:00
parent 643fb7f6ea
commit 76fe8cd4c8

View File

@ -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