GitHub does not read a special file from the repo for the repository link card. A maintainer must upload an image under Settings → General → Social preview. Until that is done, shared links may use a generic or auto-generated preview.
Use the committed PNG:
- File:
docs/assets/open-graph-cover.png - Size: 1280×640 (matches what
scripts/export_open_graph_cover.pyexports)
If that PNG is missing or you need to regenerate it from the scripted layout, from the repository root run:
python scripts/export_open_graph_cover.pyThat writes the default path docs/assets/open-graph-cover.png (requires Pillow; install with the project as usual).
The editable vector reference for the same design lives at docs/assets/open-graph-cover.svg; the export script renders the cover programmatically for consistent PNG output across environments.
- Open the repository on GitHub.
- Go to Settings (repository settings, not your account settings).
- In the left sidebar, select General.
- Scroll to Social preview.
- Choose Edit (or Upload an image), select
open-graph-cover.png, save if prompted.
Caching on social platforms can delay updates after you change the image.