Skip to content

Commit 678a2e4

Browse files
committed
DOC: Fix inheritance diagram for Ginga API.
DOC: Cannot use automodapi for Ginga API because we need to inherit docstring. DOC: Do not display inherited members because too confusing. [ci skip]
1 parent 7efa6a4 commit 678a2e4

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

astrowidgets/ginga.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Module containing ``astrowidgets`` implemented with Ginga backend.
1+
"""The ``astrowidgets.ginga`` module contains a widget implemented with the
2+
Ginga backend.
23
34
For this to work, ``astrowidgets`` must be installed along with the optional
45
dependencies specified for the Ginga backend; e.g.,::

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545

4646
# -- General configuration ----------------------------------------------------
4747

48+
autodoc_inherit_docstrings = True
49+
4850
# By default, highlight as Python 3.
4951
highlight_language = 'python3'
5052

docs/ginga.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,10 @@ For more details, see `this discussion of opencv and astrowidgets
9090
API
9191
---
9292

93-
.. automodapi:: astrowidgets.ginga
93+
.. automodule:: astrowidgets.ginga
94+
95+
.. inheritance-diagram:: astrowidgets.ginga.ImageWidget
96+
:top-classes: ipywidgets.VBox, astrowidgets.core.BaseImageWidget
97+
98+
.. autoclass:: astrowidgets.ginga.ImageWidget
99+
:members:

0 commit comments

Comments
 (0)