From 8c45ae05f957159edbaf4fd2b0f4163326eccc56 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sun, 10 Nov 2024 18:43:38 +0100 Subject: [PATCH] style sass --- .../add_data_in_org_files_from_wp_database.py | 0 atom_generate.py => WIP/atom_generate.py | 0 .../find_info_in_org.py | 0 .../move_html_in_org.py | 0 parse_article.py => WIP/parse_article.py | 0 .../series_posts_build.py | 0 tag_pages_build.py => WIP/tag_pages_build.py | 0 website_config.py => WIP/website_config.py | 0 build_indexes.py | 6 +- converters.sh | 21 +- enrich_html.py | 16 +- gemini-capsules/cipherbliss_blog/index.gmi | 13 + .../index.html | 166 +++++++++ .../index.html | 69 +++- html-websites/cipherbliss_blog/contact.html | 14 +- html-websites/cipherbliss_blog/index.html | 196 +--------- html-websites/cipherbliss_blog/style.css | 97 ++++- index_cipherbliss_blog.gmi | 1 + ...5_des-sauvegardes-qui-durent-mille-ans.org | 68 ++++ .../2024-11-03-création-d'un-blog-gemini.org | 87 ++++- ..._des-sauvegardes-qui-durent-mille-ans.html | 246 ------------ templates/styles/style_general.css | 97 ++++- templates/styles/style_general.css.map | 2 +- templates/styles_src/style_general.scss | 351 +++++++++++------- 24 files changed, 803 insertions(+), 647 deletions(-) rename add_data_in_org_files_from_wp_database.py => WIP/add_data_in_org_files_from_wp_database.py (100%) rename atom_generate.py => WIP/atom_generate.py (100%) rename find_info_in_org.py => WIP/find_info_in_org.py (100%) rename move_html_in_org.py => WIP/move_html_in_org.py (100%) rename parse_article.py => WIP/parse_article.py (100%) rename series_posts_build.py => WIP/series_posts_build.py (100%) rename tag_pages_build.py => WIP/tag_pages_build.py (100%) rename website_config.py => WIP/website_config.py (100%) create mode 100644 gemini-capsules/cipherbliss_blog/index.gmi create mode 100644 html-websites/cipherbliss_blog/2021/cipherbliss_215_des-sauvegardes-qui-durent-mille-ans/index.html create mode 100644 sources/cipherbliss_blog/lang_fr/20210927092238_cipherbliss_215_des-sauvegardes-qui-durent-mille-ans.org delete mode 100644 sources/cipherbliss_blog/lang_fr/converted/20210927092238_cipherbliss_blog_238_des-sauvegardes-qui-durent-mille-ans.html 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):