Skip to content

Commit

Permalink
DOC: Fix inheritance diagram for Ginga API.
Browse files Browse the repository at this point in the history
DOC: Cannot use automodapi for Ginga API because we need to inherit docstring.

DOC: Do not display inherited members because too confusing.

[ci skip]
  • Loading branch information
pllim committed Feb 23, 2021
1 parent 7efa6a4 commit 678a2e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion astrowidgets/ginga.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module containing ``astrowidgets`` implemented with Ginga backend.
"""The ``astrowidgets.ginga`` module contains a widget implemented with the
Ginga backend.
For this to work, ``astrowidgets`` must be installed along with the optional
dependencies specified for the Ginga backend; e.g.,::
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

# -- General configuration ----------------------------------------------------

autodoc_inherit_docstrings = True

# By default, highlight as Python 3.
highlight_language = 'python3'

Expand Down
8 changes: 7 additions & 1 deletion docs/ginga.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,10 @@ For more details, see `this discussion of opencv and astrowidgets
API
---

.. automodapi:: astrowidgets.ginga
.. automodule:: astrowidgets.ginga

.. inheritance-diagram:: astrowidgets.ginga.ImageWidget
:top-classes: ipywidgets.VBox, astrowidgets.core.BaseImageWidget

.. autoclass:: astrowidgets.ginga.ImageWidget
:members:

0 comments on commit 678a2e4

Please sign in to comment.