diff --git a/docs/source/_templates/autosummary/class_without_inherited.rst b/docs/source/_templates/autosummary/class_without_inherited.rst index a5c117823..11e49c587 100644 --- a/docs/source/_templates/autosummary/class_without_inherited.rst +++ b/docs/source/_templates/autosummary/class_without_inherited.rst @@ -6,3 +6,4 @@ .. autoclass:: {{ objname }} :members: :no-inherited-members: + :show-inheritance: diff --git a/docs/source/conf.py b/docs/source/conf.py index 9002d56b6..a84be8c12 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -225,6 +225,10 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'cartopydoc' +# Show both class-level docstring and __init__ docstring in class +# documentation +autoclass_content = 'both' + # -- Options for LaTeX output -------------------------------------------------- diff --git a/docs/source/reference/crs.rst b/docs/source/reference/crs.rst index 9ae2f0587..49aaf06be 100644 --- a/docs/source/reference/crs.rst +++ b/docs/source/reference/crs.rst @@ -13,6 +13,7 @@ Base CRS's .. autosummary:: :toctree: generated/ + :template: autosummary/class_without_inherited.rst crs.CRS crs.Globe