vercors.me : page Charte graphique (palette, polices, règles, ton) + PDF, lien dans le pied de page (FR/EN/DE), plan du site
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
02272fc670
révision
6c27bc1f99
6 fichiers modifiés
+248
-9
Aucun fichier ne correspond à votre recherche
@@ -36,16 +36,16 @@ def main():
|
||||
t = t.replace(' Voir la <a href="confidentialite.html">politique de confidentialité</a>.', '')
|
||||
t = t.replace('<a href="cgu.html">Conditions d\'utilisation</a> · <a href="confidentialite.html">Confidentialité</a> · ', '')
|
||||
open(sp, "w", encoding="utf-8").write(t)
|
||||
for fixe in ("404.html", "llms.txt", "llms-full.txt"):
|
||||
for fixe in ("404.html", "llms.txt", "llms-full.txt", "charte.html", "charte-vercors.pdf"):
|
||||
if os.path.exists(os.path.join(ICI, fixe)):
|
||||
shutil.copy(os.path.join(ICI, fixe), os.path.join(DEST, fixe))
|
||||
open(os.path.join(DEST, "robots.txt"), "w", encoding="utf-8").write("User-agent: *\nAllow: /\nSitemap: https://vercors.me/sitemap.xml\n")
|
||||
urls = "".join("<url><loc>https://vercors.me/%s</loc></url>" % u for u in ("", "climat", "a-propos", "statistiques"))
|
||||
urls = "".join("<url><loc>https://vercors.me/%s</loc></url>" % u for u in ("", "climat", "a-propos", "statistiques", "charte"))
|
||||
open(os.path.join(DEST, "sitemap.xml"), "w", encoding="utf-8").write('<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">%s</urlset>\n' % urls)
|
||||
for dossier in ("polices", "tuiles"):
|
||||
src = os.path.join(ICI, dossier)
|
||||
if os.path.isdir(src):
|
||||
shutil.copytree(src, os.path.join(DEST, dossier), ignore=shutil.ignore_patterns("*.css"))
|
||||
shutil.copytree(src, os.path.join(DEST, dossier), ignore=shutil.ignore_patterns("*.css"), dirs_exist_ok=True)
|
||||
# contrôle : aucune ressource distante dans les pages
|
||||
for nom in os.listdir(DEST):
|
||||
if nom.endswith(".html"):
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur