Thank you, this is indeed an interesting extension! But it is not enough for me. It tells Facebook to specify a global link image URL header for every page on my website. That's nice, but I want to be able to say *on certain pages* that this particular page has a custom link image URL. I guess that I must say it either by a file-wide metadata field <https://www.sphinx-doc.org/en/master/usage/restructuredtext/field-lists.html#file-wide-metadata> or using a directive. I will wait a few days before trying to write something myself, maybe you get more ideas.
Luc On 08.11.21 17:27, Komiya Takeshi wrote: > How about https://pypi.org/project/sphinxext-opengraph/? > > 2021年11月8日(月) 13:04 Luc Saffre <[email protected]>: >> Hi all, >> >> when somebody shares, in a social media platform, a link to a website >> generated by Sphinx, the platform analyzes the content to find out a title >> and a picture for that link. Facebook for example looks for a link image URL >> header. If no such header is present, it probably looks for the first >> picture on the page, which is not necessarily what we want. How can we >> spcify an explicit link image url for a page? >> >> Luc >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sphinx-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sphinx-users/f0efdb12-1d0d-e68d-6ccd-5cbd1fcbfdbb%40gmail.com. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/5b31a061-10d0-a540-a94a-926562ba1dd3%40gmail.com.
