Inserting an image in sphinx

元气小坏坏 提交于 2019-12-11 18:01:18

问题


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

When i run

make 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.


回答1:


  1. There should be a space between .. image:: and the path to the image.

  2. 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).



来源:https://stackoverflow.com/questions/48435026/inserting-an-image-in-sphinx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!