在 sphinx 中插入图像 [英] Inserting an image in sphinx
问题描述
我正在尝试在我的文档页面中插入一个图像,浏览我已经完成的文档
Im trying to insert an image my documentation page,going through the documentation i have it done like this
**Tutorial on Training model**
==============================
.. image::/home/predible/Desktop/sixfortyintofoureighty.png
当我跑步时
制作html
它不会抛出任何错误,但图像没有显示在文档中,任何有关如何显示图像的建议都会非常有帮助,提前致谢.
It does not throw any error but the image does not display in the documentation,Any suggestions on how do i get my image to display would be really helpful,thanks in advance.
推荐答案
.. image::
和图片路径之间应该有一个空格.
There should be a space between
.. image::
and the path to the image.
图像路径必须相对于源文件,或者绝对路径,这意味着它相对于顶级源目录(参见 http://www.sphinx-doc.org/en/stable/rest.html#images).
The image path must either be relative to the source file, or absolute which means that it is relative to the top source directory (see http://www.sphinx-doc.org/en/stable/rest.html#images).
这篇关于在 sphinx 中插入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!