Skip to content

Commit

Permalink
Use automodapi to document all classes
Browse files Browse the repository at this point in the history
The automodapi creates one page for all classes, and displays a complete list of class names in the navigation section.
  • Loading branch information
magnesj committed Jan 24, 2021
1 parent 3792a1b commit adcccdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
build
_build
.vscode
.vscode
api
9 changes: 3 additions & 6 deletions docs/source/GeneratedClasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ You can look for objects of a specific type by using the **descendants** method
# Get a list of all Eclipsev view in the project
views = resinsight.project.descendants(rips.EclipseView)

.. automodule:: rips
:members:
:noindex:
:inherited-members:
:show-inheritance:

.. automodapi:: rips


2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon', 'm2r'
'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon', 'm2r', 'sphinx_automodapi.automodapi'
]

master_doc = 'index'
Expand Down

0 comments on commit adcccdc

Please sign in to comment.