vercors.me : page Climat dans le menu (FR/EN/DE), le sitemap et l'assemblage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
2c664488c3
révision
d57cc989a8
3 fichiers modifiés
+8
-8
Aucun fichier ne correspond à votre recherche
@@ -12,7 +12,7 @@ import sys
|
||||
ICI = os.path.dirname(os.path.abspath(__file__))
|
||||
DEST = os.path.join(os.path.dirname(os.path.dirname(ICI)), "site-v2")
|
||||
# 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", "statistiques.html")
|
||||
PAGES = ("index.html", "a-propos.html", "statistiques.html", "climat.html")
|
||||
|
||||
|
||||
def main():
|
||||
@@ -39,7 +39,7 @@ def main():
|
||||
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 ("", "a-propos", "statistiques"))
|
||||
urls = "".join("<url><loc>https://vercors.me/%s</loc></url>" % u for u in ("", "climat", "a-propos", "statistiques"))
|
||||
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)
|
||||
|
||||
@@ -542,7 +542,7 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div class="commandes" id="commandes"><button type="button" id="plus" aria-label="Zoomer" data-i18n-a="aria-label:zoom.plus">+</button><button type="button" id="moins" aria-label="Dézoomer" data-i18n-a="aria-label:zoom.moins">−</button></div>
|
||||
|
||||
<header class="cartouche" id="cartouche">
|
||||
<nav><span data-i18n="nav.meteo">Météo</span><div><a href="#stations" data-i18n="nav.stations">Stations</a><a href="a-propos.html" data-i18n="nav.apropos">À propos</a></div></nav>
|
||||
<nav><span data-i18n="nav.meteo">Météo</span><div><a href="#stations" data-i18n="nav.stations">Stations</a><a href="climat.html" data-i18n="nav.climat">Climat</a><a href="a-propos.html" data-i18n="nav.apropos">À propos</a></div></nav>
|
||||
<h1>Vercors</h1>
|
||||
<p class="date" id="date" data-i18n="date.exemple">Mardi 3 novembre · relevés de 7 h 40</p>
|
||||
<p class="phrase" id="phrase"></p>
|
||||
@@ -751,7 +751,7 @@ const I18N = {
|
||||
en: {
|
||||
titre: 'Météo Vercors: temperatures across the Vercors, station by station',
|
||||
'carte.aria': 'Map of the Vercors weather stations', 'zoom.plus': 'Zoom in', 'zoom.moins': 'Zoom out',
|
||||
'nav.meteo': 'Weather', 'nav.stations': 'Stations', 'nav.apropos': 'About',
|
||||
'nav.meteo': 'Weather', 'nav.stations': 'Stations', 'nav.climat': 'Climate', 'nav.apropos': 'About',
|
||||
'date.exemple': 'Tuesday 3 November · readings from 7:40',
|
||||
'rech.ph': 'A station, a village…', 'rech.aria': 'Search for a station or a village',
|
||||
'record.label': 'Highlight', 'record.auto': 'By season', 'record.froid': 'Coldest', 'record.chaud': 'Warmest', 'record.vent': 'Windiest', 'record.pluie': 'Wettest',
|
||||
@@ -830,7 +830,7 @@ const I18N = {
|
||||
de: {
|
||||
titre: 'Météo Vercors: die Temperatur im Vercors, Station für Station',
|
||||
'carte.aria': 'Karte der Wetterstationen im Vercors', 'zoom.plus': 'Vergrößern', 'zoom.moins': 'Verkleinern',
|
||||
'nav.meteo': 'Wetter', 'nav.stations': 'Stationen', 'nav.apropos': 'Über uns',
|
||||
'nav.meteo': 'Wetter', 'nav.stations': 'Stationen', 'nav.climat': 'Klima', 'nav.apropos': 'Über uns',
|
||||
'date.exemple': 'Dienstag, 3. November · Messwerte von 7:40',
|
||||
'rech.ph': 'Eine Station, ein Dorf…', 'rech.aria': 'Station oder Dorf suchen',
|
||||
'record.label': 'Hervorheben', 'record.auto': 'Je nach Jahreszeit', 'record.froid': 'Am kältesten', 'record.chaud': 'Am wärmsten', 'record.vent': 'Am windigsten', 'record.pluie': 'Am meisten Regen',
|
||||
|
||||
@@ -542,7 +542,7 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div class="commandes" id="commandes"><button type="button" id="plus" aria-label="Zoomer" data-i18n-a="aria-label:zoom.plus">+</button><button type="button" id="moins" aria-label="Dézoomer" data-i18n-a="aria-label:zoom.moins">−</button></div>
|
||||
|
||||
<header class="cartouche" id="cartouche">
|
||||
<nav><span data-i18n="nav.meteo">Météo</span><div><a href="#stations" data-i18n="nav.stations">Stations</a><a href="a-propos.html" data-i18n="nav.apropos">À propos</a></div></nav>
|
||||
<nav><span data-i18n="nav.meteo">Météo</span><div><a href="#stations" data-i18n="nav.stations">Stations</a><a href="climat.html" data-i18n="nav.climat">Climat</a><a href="a-propos.html" data-i18n="nav.apropos">À propos</a></div></nav>
|
||||
<h1>Vercors</h1>
|
||||
<p class="date" id="date" data-i18n="date.exemple">Mardi 3 novembre · relevés de 7 h 40</p>
|
||||
<p class="phrase" id="phrase"></p>
|
||||
@@ -751,7 +751,7 @@ const I18N = {
|
||||
en: {
|
||||
titre: 'Météo Vercors: temperatures across the Vercors, station by station',
|
||||
'carte.aria': 'Map of the Vercors weather stations', 'zoom.plus': 'Zoom in', 'zoom.moins': 'Zoom out',
|
||||
'nav.meteo': 'Weather', 'nav.stations': 'Stations', 'nav.apropos': 'About',
|
||||
'nav.meteo': 'Weather', 'nav.stations': 'Stations', 'nav.climat': 'Climate', 'nav.apropos': 'About',
|
||||
'date.exemple': 'Tuesday 3 November · readings from 7:40',
|
||||
'rech.ph': 'A station, a village…', 'rech.aria': 'Search for a station or a village',
|
||||
'record.label': 'Highlight', 'record.auto': 'By season', 'record.froid': 'Coldest', 'record.chaud': 'Warmest', 'record.vent': 'Windiest', 'record.pluie': 'Wettest',
|
||||
@@ -830,7 +830,7 @@ const I18N = {
|
||||
de: {
|
||||
titre: 'Météo Vercors: die Temperatur im Vercors, Station für Station',
|
||||
'carte.aria': 'Karte der Wetterstationen im Vercors', 'zoom.plus': 'Vergrößern', 'zoom.moins': 'Verkleinern',
|
||||
'nav.meteo': 'Wetter', 'nav.stations': 'Stationen', 'nav.apropos': 'Über uns',
|
||||
'nav.meteo': 'Wetter', 'nav.stations': 'Stationen', 'nav.climat': 'Klima', 'nav.apropos': 'Über uns',
|
||||
'date.exemple': 'Dienstag, 3. November · Messwerte von 7:40',
|
||||
'rech.ph': 'Eine Station, ein Dorf…', 'rech.aria': 'Station oder Dorf suchen',
|
||||
'record.label': 'Hervorheben', 'record.auto': 'Je nach Jahreszeit', 'record.froid': 'Am kältesten', 'record.chaud': 'Am wärmsten', 'record.vent': 'Am windigsten', 'record.pluie': 'Am meisten Regen',
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur