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

问题描述

是否可以在 <form [formGroup]="control" class="w-100"> 中调整设置以确保为指向我的 index.html 的链接生成图像预览?

我想我需要在里面放一个图片链接

conf.py

也许是对 <head><Meta name="og:image" content="https://.png" /></head> 选项之一的设置?我通读了它们,但什么也没看到。

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

enter image description here

链接到的页面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> 标签的字段。