vercors.me : publication préparée (récepteur restreint des données, push depuis cornafserver, assembleur public)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cette révision appartient à :
Théo GastineletClaude Sonnet 5.5 a révisé 2026-11-04 12:26:03 +01:00
1 Parent 11d44a563e
révision 3884dc5401
3 fichiers modifiés
+59 -2

Aucun fichier ne correspond à votre recherche

+4 -2
Voir le fichier
@@ -11,7 +11,8 @@ import sys
ICI = os.path.dirname(os.path.abspath(__file__))
DEST = os.path.join(os.path.dirname(os.path.dirname(ICI)), "site-v2")
PAGES = ("index.html", "a-propos.html", "cgu.html", "confidentialite.html")
# CGU et confidentialité : retirées de la version publique jusqu'à la relecture juridique (textes dans maquettes/ et Documents/Meteo-Vercors/08-Juridique)
PAGES = ("index.html", "a-propos.html")
def main():
@@ -24,10 +25,11 @@ def main():
# forum non ouvert : pas de lien vers des pages qui n'existent pas encore en ligne
ip = os.path.join(DEST, "index.html")
t = open(ip, encoding="utf-8").read()
t = t.replace('<li><a href="cgu.html">CGU</a></li>', '').replace('<li><a href="confidentialite.html">Confidentialité</a></li>', '')
t = t.replace('href="forum/index.html"', 'aria-disabled="true"').replace('href="forum/connexion.html"', 'aria-disabled="true"')
open(ip, "w", encoding="utf-8").write(t)
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 ("", "a-propos", "cgu", "confidentialite"))
urls = "".join("<url><loc>https://vercors.me/%s</loc></url>" % u for u in ("", "a-propos"))
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)