)]}'
{
  "commit": "f92f380ff6e1dff5c4a2e324b7a6f32056899165",
  "tree": "33ddc9a3939f9a3986c731781a0181f5790c669d",
  "parents": [
    "a2b5225e8560bcd40917d188f521cb004ef75bcc"
  ],
  "author": {
    "name": "WK",
    "email": "23054115+cwkang1998@users.noreply.github.com",
    "time": "Wed Nov 25 02:58:07 2026 +0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 24 14:58:07 2026 -0500"
  },
  "message": "Add OpenGraph unfurl image to docs (#22839)\n\n## Summary\n\nCloses #8542.\n\nThis PR aims to make ruff\u0027s documentation sharing appear as a card on\nsocial medias via adding OpenGraph(OG) tags in the `\u003chead\u003e` section of\nthe documentation.\n\n### Implementation\n\nThe og tags were added to `docs/.override/main.html`, and the image\nadded is taken from `playground/ruff/public/Ruff.png`. The image was\nchosen since it fits the card better compared to using just the logo.\n\n### How it looks with the changes implemented (images from\nhttps://www.opengraph.xyz/)\n\n\u003cimg width\u003d\"661\" height\u003d\"413\" alt\u003d\"Screenshot 2026-01-25 at 2 31 37 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/d5e1ee46-346e-4e88-9d41-af238d9f0ca0\"\n/\u003e\n\u003cimg width\u003d\"661\" height\u003d\"330\" alt\u003d\"Screenshot 2026-01-25 at 2 31 45 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/39249e06-708e-4486-a488-437ed83656bf\"\n/\u003e\n\u003cimg width\u003d\"661\" height\u003d\"438\" alt\u003d\"Screenshot 2026-01-25 at 2 31 54 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/305a7a69-b5d0-4fa2-bfa0-7a40eb71a98b\"\n/\u003e\n\n### How it looks if a specific page is shown\n\nThe card should also display the correct title, depending on the page\nthat was shared.\n\n\u003cimg width\u003d\"661\" height\u003d\"438\" alt\u003d\"Screenshot 2026-01-25 at 2 53 26 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/9be20f40-afe6-4b21-b6e7-f8c25dd8a67c\"\n/\u003e\n\n## Test Plan\n\n\u003c!-- How was it tested? --\u003e\n\nThe testing are mainly done on site such as https://www.opengraph.xyz/,\nwith ngrok as a proxy to expose the local changes\n\n\n## Alternative implementation\n\nThere\u0027s a `mkdocs-material` social plugin that supports generating\nbeautiful cards for each pages, which results in something like so:\n\n\u003cimg width\u003d\"661\" height\u003d\"438\" alt\u003d\"Screenshot 2026-01-25 at 4 06 48 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/02b1ac8f-2080-452f-861e-400a26ce172a\"\n/\u003e\n\u003cimg width\u003d\"661\" height\u003d\"438\" alt\u003d\"Screenshot 2026-01-25 at 4 06 55 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/23608ae5-88fb-495d-b4e8-1d658dacd8fe\"\n/\u003e\n\u003cimg width\u003d\"661\" height\u003d\"438\" alt\u003d\"Screenshot 2026-01-25 at 4 06 58 AM\"\nsrc\u003d\"https://github.com/user-attachments/assets/190e9564-03d1-4133-924a-e6870499e446\"\n/\u003e\n\n\nMore details for the plugin can be seen here:\nhttps://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards.\n\nThe plugin relies on extra dependencies for generating image: `CairoSVG`\nand `pillow`, and will require installation of native dependencies\n(details:\nhttps://squidfunk.github.io/mkdocs-material/plugins/requirements/image-processing/).\nWhen setting this up I do have some issues with `uvx` not detecting\n`DYLD_FALLBACK_LIBRARY_PATH`, but running it in the venv without `uvx`\nresolves this.\n\nI went with the current approach instead of this alternative ones since\nI\u0027m already done with the current approach by the time I found the\nsocial plugin.\n\nPersonally I do think the social plugin looks better in general, but\nwould like some opinion on this matter: which will be the preferred\nimplementation for ruff here?\n\n---------\n\nCo-authored-by: Brent Westbrook \u003cbrentrwestbrook@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "07cd6bc02dc9cf3ffaaa67f8c6bdad8e0c440fc7",
      "old_mode": 33188,
      "old_path": "docs/.overrides/main.html",
      "new_id": "291879de32b14a8befcfcd389fe8c7bb82e65dbf",
      "new_mode": 33188,
      "new_path": "docs/.overrides/main.html"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8cc8b0cd81326123f50b4974d228be1816f49f52",
      "new_mode": 33188,
      "new_path": "docs/assets/Ruff.png"
    }
  ]
}
