Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 815421b

Browse files
committed
Add autoclass entry for Artist API doc.
Adding an autoclass entry in the Artist API ensures that that class appears in the intersphinx `build/html/object.inv`, as can be checked by ``` "matplotlib.artist.Artist" in ( sphinx.ext.intersphinx.read_inventory( open("build/html/objects.inv", "rb"), None, lambda *args: None)[ "py:class"]) ``` (now returns True). This allows other projects to link to that class in their docs using ``` `Artist` <matplotlib.artist.Artist> ``` This possibility used to be present, but disappeared when the Artist API doc got refactored. (Other classes that appear in the API docs are fine as they already use autoclass.)
1 parent 72cea62 commit 815421b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

doc/api/artist_api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
``Artist`` class
1717
================
1818

19+
.. autoclass:: Artist
1920

2021
Interactive
2122
-----------

0 commit comments

Comments
 (0)