Skip to content

No documentation on how to include an image in autoapi output #518

@taldcroft

Description

@taldcroft

I have a module docstring which includes a PNG image like so:

.. image:: images/aca_timing_manual.png
  :width: 600

In this case there is a file images/aca_timing_manual.png at the same level as the main index.rst file. Using the sphinx built-in sphinx.ext.autodoc, the image is correctly included in the module autodoc output from:

.. automodule:: chandra_aca.maude_decom
   :members:

Using sphinx-autoapi, I get this error:

reading sources... [100%] api/index
/Volumes/git/chandra_aca/docs/api/chandra_aca/maude_decom/index.rst:48: WARNING: image file not readable: api/chandra_aca/maude_decom/images/aca_timing_manual.png [image.not_readable]

I have been unable to discover any documentation on how to resolve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions