【问题标题】:Inserting an image in sphinx在 sphinx 中插入图像
【发布时间】:2018-01-25 03:13:15
【问题描述】:

我试图在我的文档页面中插入图像,浏览文档我已经这样做了

**Tutorial on Training model**
==============================


.. image::/home/predible/Desktop/sixfortyintofoureighty.png

当我跑步时

make html

它不会引发任何错误,但图像不会显示在文档中,任何关于如何让我的图像显示的建议都会非常有帮助,在此先感谢。

【问题讨论】:

    标签: python-sphinx restructuredtext


    【解决方案1】:
    1. .. image:: 和图片路径之间应该有一个空格。

    2. 图像路径必须是相对于源文件的路径,或者是绝对路径,这意味着它相对于顶部源目录(请参阅http://www.sphinx-doc.org/en/stable/rest.html#images)。

    【讨论】:

    • 感谢您的宝贵时间
    猜你喜欢
    • 1970-01-01
    • 2016-04-19
    • 1970-01-01
    • 2021-05-22
    • 2014-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多