Skip to content

Commit

Permalink
fix docs for latest sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Oct 9, 2023
1 parent ca2538d commit eb04a24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
1 change: 1 addition & 0 deletions doc/global.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. py:module:: pyvips
26 changes: 8 additions & 18 deletions doc/vimage.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
.. include global.rst
.. py:currentmodule:: pyvips
``Image``
=========

Main methods
------------

.. autoclass:: pyvips.Image
.. autoclass:: Image
:members:
:special-members:

.. rubric:: Methods

.. autoautosummary:: pyvips.Image
.. autoautosummary:: Image
:methods:

Attributes
Expand All @@ -21,21 +23,8 @@ Attributes
.. autosummary::
:nosignatures:

~pyvips.Image.bands
~pyvips.Image.coding
~pyvips.Image.filename
~pyvips.Image.format
~pyvips.Image.height
~pyvips.Image.interpretation
~pyvips.Image.offset
~pyvips.Image.scale
~pyvips.Image.width
~pyvips.Image.xoffset
~pyvips.Image.xres
~pyvips.Image.yoffset
~pyvips.Image.yres

.. class:: pyvips.Image
.. class:: Image
:noindex:

.. attribute:: width

Expand Down Expand Up @@ -93,7 +82,8 @@ Attributes
Autogenerated methods
---------------------

.. class:: pyvips.Image
.. class:: Image
:noindex:

.. rubric:: Methods

Expand Down
3 changes: 2 additions & 1 deletion pyvips/voperation.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ def add_name(gtype, a, b):
all_names = [x for x in all_names if x not in exclude]

# Output summary table
print('.. class:: pyvips.Image\n')
print('.. class:: Image')
print(' :noindex:\n')
print(' .. rubric:: Methods\n')
print(' .. autosummary::')
print(' :nosignatures:\n')
Expand Down

0 comments on commit eb04a24

Please sign in to comment.