up generation index
This commit is contained in:
parent
949e1f47dd
commit
356a365eec
@ -60,16 +60,18 @@ def generer_index(dossier_md, fichier_index, titre_index):
|
||||
contenu_index_html += f"<br><a href=/{link_html}>{link_html}</a>"
|
||||
|
||||
contenu_index_gmi += "\n# Articles en Français\n-------------------------\n"
|
||||
lang_folder="lang_fr/"
|
||||
for fichier in files_fr:
|
||||
contenu_index_gmi += f"=> {fichier}\n"
|
||||
link_html = fichier.replace('..gmi','.html')
|
||||
contenu_index_html += f"<br><a href=/{link_html}>{link_html}</a>"
|
||||
contenu_index_html += f"<br><a href=/{lang_folder}{link_html}>{link_html}</a>"
|
||||
|
||||
contenu_index_gmi += "\n# Articles in English\n-------------------------\n"
|
||||
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"<br><a href=/{link_html}>{link_html}</a>"
|
||||
contenu_index_html += f"<br><a href=/{lang_folder}{link_html}>{link_html}</a>"
|
||||
|
||||
# Écrit le contenu dans le fichier d'index
|
||||
try:
|
||||
@ -77,7 +79,7 @@ def generer_index(dossier_md, fichier_index, titre_index):
|
||||
file.write(contenu_index_gmi)
|
||||
print(f"Fichier d'index '{chemin_fichier_index_html}' généré avec succès.")
|
||||
|
||||
with open(chemin_fichier_index_gemini, 'w', encoding='utf-8') as file:
|
||||
with open(chemin_fichier_index_html, 'w', encoding='utf-8') as file:
|
||||
file.write('<html><head><title>'+args.title+'</title></head><body>'+contenu_index_html+'</article></body></html>')
|
||||
print(f"Fichier d'index '{chemin_fichier_index_html}' généré avec succès.")
|
||||
except OSError as e:
|
||||
|
@ -97,7 +97,7 @@ generate_website() {
|
||||
# Boucle à travers la liste des sites Web
|
||||
for website_name in "${blogs_folders[@]}"; do
|
||||
generate_website $website_name
|
||||
python3 build_index_gemini.py $website_name
|
||||
mv "index_$website_name.html" "html-websites/$website_name"
|
||||
mv "index_$website_name.gmi" "gemini-capsules/$website_name"
|
||||
python3 build_index_gemini.py $website_name "$website_name"
|
||||
mv "index_$website_name.html" "html-websites/$website_name/index.html"
|
||||
mv "index_$website_name.gmi" "gemini-capsules/$website_name/index.gmi"
|
||||
done
|
||||
|
@ -1,33 +1,19 @@
|
||||
# dragonfeu_blog - Articles
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
|
||||
# Navigation
|
||||
-------------------------
|
||||
=> index..gmi
|
||||
|
||||
# Articles en Français
|
||||
-------------------------
|
||||
=> 2024-11-02-coucou-gemini..gmi
|
||||
=> 2024-09-08-strategie-mitigation-accident-fusion-coeur-epr2..gmi
|
||||
=> 2024-05-15-l-aventure-superphenix..gmi
|
||||
=> 2023-06-10-recap-centrale-zaporijia..gmi
|
||||
=> 2023-06-09-recapitulatif-contenu-threads..gmi
|
||||
|
||||
|
||||
```
|
||||
----------------------------------------------------------- <hr>
|
||||
```
|
||||
|
||||
|
||||
Les trucs d'un dragon qui roule plus vite à vélo tel un neutron rapide, mais avec un casque opour le vélotaf chez Hexana.
|
||||
|
||||
|
||||
```
|
||||
----------------------------------------------------------- <hr>
|
||||
```
|
||||
|
||||
|
||||
À propos => a-propos.gmi
|
||||
|
||||
|
||||
Projets => projets.gmi
|
||||
|
||||
|
||||
Contact => contact.gmi
|
||||
|
||||
|
||||
BlogRoll => blogroll.gmi
|
||||
|
||||
|
||||
```
|
||||
----------------------------------------------------------- <hr>
|
||||
```
|
||||
# Articles in English
|
||||
-------------------------
|
||||
=> 2024-11-02-coucou-gemini..gmi
|
||||
|
@ -1,110 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>dragonfeu_blog</title>
|
||||
<style type='text/css'>* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
<html><head><title>dragonfeu_blog</title></head><body> # dragonfeu_blog - Articles
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
body {
|
||||
font-family: Helvetica, "Ubuntu Sans", "Noto Sans", Arial, sans-serif;
|
||||
text-align: left;
|
||||
margin: 0 auto;
|
||||
font-size: 1rem;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Open Sans", "Noto Sans", Times, serif;
|
||||
}
|
||||
|
||||
/* 1. Use a more-intuitive box-sizing model */
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 2. Remove default margin */
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
/* 3. Add accessible line-height */
|
||||
line-height: 1.5;
|
||||
/* 4. Improve text rendering */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* 5. Improve media defaults */
|
||||
img, picture, video, canvas, svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* 6. Inherit fonts for form controls */
|
||||
input, button, textarea, select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* 7. Avoid text overflows */
|
||||
p, h1, h2, h3, h4, h5, h6 {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
/* 8. Improve line wrapping */
|
||||
p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
/*
|
||||
9. Create a root stacking context
|
||||
*/
|
||||
#root, #__next {
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
input, button, textarea, select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
</style></head>
|
||||
<body>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<title>dragonfeu_blog</title>
|
||||
<style>
|
||||
code{white-space: pre-wrap;}
|
||||
span.smallcaps{font-variant: small-caps;}
|
||||
span.underline{text-decoration: underline;}
|
||||
div.column{display: inline-block; vertical-align: top; width: 50%;}
|
||||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
||||
ul.task-list{list-style: none;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">dragonfeu_blog</h1>
|
||||
</header>
|
||||
<hr />
|
||||
<p>Les trucs d'un dragon qui roule plus vite à vélo tel un neutron rapide, mais avec un casque opour le vélotaf chez Hexana.</p>
|
||||
<hr />
|
||||
<p>À propos => a-propos.gmi</p>
|
||||
<p>Projets => projets.gmi</p>
|
||||
<p>Contact => contact.gmi</p>
|
||||
<p>BlogRoll => blogroll.gmi</p>
|
||||
<hr />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<br><a href=/index.html>index.html</a><br><a href=/lang_fr/2024-11-02-coucou-gemini.html>2024-11-02-coucou-gemini.html</a><br><a href=/lang_fr/2024-09-08-strategie-mitigation-accident-fusion-coeur-epr2.html>2024-09-08-strategie-mitigation-accident-fusion-coeur-epr2.html</a><br><a href=/lang_fr/2024-05-15-l-aventure-superphenix.html>2024-05-15-l-aventure-superphenix.html</a><br><a href=/lang_fr/2023-06-10-recap-centrale-zaporijia.html>2023-06-10-recap-centrale-zaporijia.html</a><br><a href=/lang_fr/2023-06-09-recapitulatif-contenu-threads.html>2023-06-09-recapitulatif-contenu-threads.html</a><br><a href=/lang_en/2024-11-02-coucou-gemini.html>2024-11-02-coucou-gemini.html</a></article></body></html>
|
2
templates/website_pages/org/a-propos.org
Normal file
2
templates/website_pages/org/a-propos.org
Normal file
@ -0,0 +1,2 @@
|
||||
* à propos
|
||||
à propos de ce site
|
0
templates/website_pages/org/accueil.org
Normal file
0
templates/website_pages/org/accueil.org
Normal file
2
templates/website_pages/org/blogroll.org
Normal file
2
templates/website_pages/org/blogroll.org
Normal file
@ -0,0 +1,2 @@
|
||||
* Blogs recommandés
|
||||
-
|
1
templates/website_pages/org/contact.org
Normal file
1
templates/website_pages/org/contact.org
Normal file
@ -0,0 +1 @@
|
||||
* Contact
|
3
templates/website_pages/org/footer-articles.org
Normal file
3
templates/website_pages/org/footer-articles.org
Normal file
@ -0,0 +1,3 @@
|
||||
----------------
|
||||
Écrit par $$AUTHOR$$ $$DATE_ARTICLE$$.
|
||||
Si vous aimez ce que nous faisons, soutenez vous
|
2
templates/website_pages/org/projets.org
Normal file
2
templates/website_pages/org/projets.org
Normal file
@ -0,0 +1,2 @@
|
||||
* Projets
|
||||
- mon projet 1
|
Loading…
Reference in New Issue
Block a user