From 815421b46a14ac378404bd160e247682d77f0554 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 28 Feb 2017 21:33:27 -0800 Subject: [PATCH] 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` ``` 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.) --- doc/api/artist_api.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/artist_api.rst b/doc/api/artist_api.rst index 3e1bb8fbb9e9..da1839b0636d 100644 --- a/doc/api/artist_api.rst +++ b/doc/api/artist_api.rst @@ -16,6 +16,7 @@ ``Artist`` class ================ +.. autoclass:: Artist Interactive -----------