diff --git a/add_data_in_org_files_from_wp_database.py b/WIP/add_data_in_org_files_from_wp_database.py
similarity index 100%
rename from add_data_in_org_files_from_wp_database.py
rename to WIP/add_data_in_org_files_from_wp_database.py
diff --git a/atom_generate.py b/WIP/atom_generate.py
similarity index 100%
rename from atom_generate.py
rename to WIP/atom_generate.py
diff --git a/find_info_in_org.py b/WIP/find_info_in_org.py
similarity index 100%
rename from find_info_in_org.py
rename to WIP/find_info_in_org.py
diff --git a/move_html_in_org.py b/WIP/move_html_in_org.py
similarity index 100%
rename from move_html_in_org.py
rename to WIP/move_html_in_org.py
diff --git a/parse_article.py b/WIP/parse_article.py
similarity index 100%
rename from parse_article.py
rename to WIP/parse_article.py
diff --git a/series_posts_build.py b/WIP/series_posts_build.py
similarity index 100%
rename from series_posts_build.py
rename to WIP/series_posts_build.py
diff --git a/tag_pages_build.py b/WIP/tag_pages_build.py
similarity index 100%
rename from tag_pages_build.py
rename to WIP/tag_pages_build.py
diff --git a/website_config.py b/WIP/website_config.py
similarity index 100%
rename from website_config.py
rename to WIP/website_config.py
diff --git a/build_indexes.py b/build_indexes.py
index 7cbf56c8..25360220 100755
--- a/build_indexes.py
+++ b/build_indexes.py
@@ -215,14 +215,12 @@ def generer_index(dossier_source, fichier_index, titre_index):
os.makedirs(os.path.dirname(new_folder_path_this_article), exist_ok=True)
# déplacer le fichier html dans le dossier slug, et le renommer en index.html ensuite pour ne pas modifier l'index du blog
shutil.copy(chemin_fichier_this_article, new_folder_path_this_article+'index.html')
-
+ # ---------------- pareil en anglais TODO
# contenu_index_gmi += "\n# Articles in English\n-------------------------\n"
# contenu_index_html += "
Articles in English
"
# lang_folder="lang_en/"
# for fichier in files_en:
- # contenu_index_gmi += f"=> {fichier}\n"
- # link_html = fichier.replace('..gmi','.html')
- # contenu_index_html += f"
{link_html}"
+ # ----------------------------------------
print(contenu_index_gmi)
diff --git a/converters.sh b/converters.sh
index 7866bb9a..68131f67 100755
--- a/converters.sh
+++ b/converters.sh
@@ -178,7 +178,7 @@ bash sass_styles.sh
for website_name in "${blogs_folders[@]}"; do
generate_website $website_name
- convert_markdown_to_gmi $website_name
+ # convert_markdown_to_gmi $website_name
# création de l'index:
# prendre les fichiers markdown du dossier md/ ,
@@ -187,21 +187,20 @@ for website_name in "${blogs_folders[@]}"; do
python3 build_indexes.py $website_name "$website_name"
# déplacer les fichiers générés en html dans le dossier statique
- # mv sources/$website_name/converted/*.html html-websites/$website_name/
- # mv sources/$website_name/lang_fr/converted/*.html html-websites/$website_name/
- mv index_$website_name.html html-websites/$website_name/index.html
- mv sources/$website_name/converted/*.html html-websites/$website_name/
- mv sources/$website_name/converted/lang_fr/*.html html-websites/$website_name/lang_fr/
- mv sources/$website_name/converted/lang_en/*.html html-websites/$website_name/lang_en/
+
+ cp sources/$website_name/converted/*.html html-websites/$website_name/
+ cp index_$website_name.html html-websites/$website_name/index.html
+ cp sources/$website_name/converted/lang_fr/*.html html-websites/$website_name/lang_fr/
+ cp sources/$website_name/converted/lang_en/*.html html-websites/$website_name/lang_en/
python3 enrich_html.py html-websites/$website_name -t $website_name --style $style_file
# # déplacer les fichirers gemini dans la capsule
- # mv index_$website_name.gmi gemini-capsules/$website_name/index.gmi
- # mv sources/$website_name/converted/*.gmi gemini-capsules/$website_name/
- # mv sources/$website_name/converted/lang_fr/*.gmi gemini-capsules/$website_name/lang_fr/
- # mv sources/$website_name/converted/lang_en/*.gmi gemini-capsules/$website_name/lang_en/
+ cp index_$website_name.gmi gemini-capsules/$website_name/index.gmi
+ cp sources/$website_name/converted/*.gmi gemini-capsules/$website_name/
+ cp sources/$website_name/converted/lang_fr/*.gmi gemini-capsules/$website_name/lang_fr/
+ cp sources/$website_name/converted/lang_en/*.gmi gemini-capsules/$website_name/lang_en/
# copy style
cp $style_file html-websites/$website_name/style.css
diff --git a/enrich_html.py b/enrich_html.py
index d5205077..6e71d575 100755
--- a/enrich_html.py
+++ b/enrich_html.py
@@ -99,7 +99,7 @@ def enrich_one_file(file, root_path):
html_content = remove_article_head_properties_orgmode(html_content)
html_content = remove_hint_html(html_content)
- if inline_the_css:
+ if inline_the_css == True:
print(' ----------- include css inline in each html page')
with open(os.path.join(root_path, file), "r") as f:
css_content = f.read()
@@ -140,14 +140,17 @@ def enrich_one_file(file, root_path):