Repository navigation
fix(partage): balises de partage dans la coquille Streamlit et image de la carte - #19
Merged
Merged
Conversation
…de la carte Les robots LinkedIn, X et WhatsApp n'exécutent pas le JavaScript : un lien vers caribscope.fwicss.fr s'affichait « Streamlit » sans titre ni image. deploy/patch_index_html.py réécrit index.html du paquet Streamlit à la construction de l'image Docker (titre, lang fr, description, Open Graph, Twitter card, canonique). static/og-default.jpg (carte des trajectoires, 1200x630) est servie par enableStaticServing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pourquoi
Un lien vers caribscope.fwicss.fr s'affichait « Streamlit », sans titre ni image, sur LinkedIn, X et WhatsApp : leurs robots n'exécutent pas le JavaScript, et
src/components/head.pyne corrige le DOM que côté navigateur.Quoi
deploy/patch_index_html.py: réécrit l'index.htmldu paquet Streamlit à la construction Docker (titre,lang="fr", description, Open Graph, Twitter card, canonique). Idempotent.static/og-default.jpg: carte des trajectoires 1980-2025 (catégories 3 à 5), 1200x630, servie parenableStaticServingsous/app/static/.tests/test_patch_index_html.py: 5 tests sur la coquille réelle (tests/fixtures/streamlit-index.html).Vérifié
Image construite en local : le HTML servi porte
<title>CaribScope — …</title>,og:imageabsolue etlang="fr";/app/static/og-default.jpgrépond 200 image/png.Après fusion
Passer l'URL dans l'inspecteur de publication LinkedIn pour rafraîchir le cache, puis rééditer le post programmé du 20/11 (retirer puis remettre le lien).