Skip to content

Commit dc52e53

Browse files
committed
DOC: Cannot use automodapi
because we need to inherit docstring. DOC: Do not display inherited members because too confusing.
1 parent 33b90af commit dc52e53

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

astrowidgets/ginga.py

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,9 @@ For more details, see `this discussion of opencv and astrowidgets
9090
API
9191
---
9292

93-
.. automodapi:: astrowidgets.ginga
94-
:inherited-members:
93+
.. automodule:: astrowidgets.ginga
94+
95+
.. inheritance-diagram:: astrowidgets.ginga.ImageWidget
96+
97+
.. autoclass:: astrowidgets.ginga.ImageWidget
98+
:members:

0 commit comments

Comments
 (0)