如何控制 readthedocs/sphinx 页面链接的图像预览?

How to control image previews for links to readthedocs/ sphinx page?

我可以在 conf.py 中调整设置以确保为我的 index.html 生成 link 的图像预览吗?

我想我需要在图片里面放一个link:

<head><meta name="og:image" content="https://.png" /></head>

也许 html_* 选项之一的设置?我通读了它们,但什么也没看到。

https://www.sphinx-doc.org/en/master/usage/configuration.html

页面到 link 到:https://aiqc.readthedocs.io/en/latest/

可用的众多元标记之一:

https://github.com/wpilibsuite/sphinxext-opengraph

conf.py

extensions = ['sphinxext.opengraph']

ogp_image = "https://raw.githubusercontent.com/aiqc/aiqc/main/docs/images/aiqc_logo_banner_controlroom.png"

它甚至有一个用于用户定义 <meta> 标签的字段。