imagepython-sphinx

How do we embed images in Sphinx docs?


How to embed images in Sphinx documentation?


Solution

  • Use the image directive, for example:

    .. image:: example.png
    

    The path to the image is relative to the file. See the Sphinx documentation for more information.