Skip to content

Commit

Permalink
DOC: Use the "autosummary" extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Feb 19, 2019
1 parent 44e17c7 commit 94b79ce
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 66 deletions.
14 changes: 14 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
API Documentation
=================

.. currentmodule:: sfs

.. autosummary::
:toctree:

array
tapering
mono
time
plot
util
13 changes: 0 additions & 13 deletions doc/arrays.rst

This file was deleted.

3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon', # support for NumPy-style docstrings
Expand All @@ -49,6 +50,8 @@
autodoc_member_order = 'bysource'
autodoc_default_flags = ['members', 'undoc-members']

autosummary_generate = ['api']

napoleon_google_docstring = False
napoleon_numpy_docstring = True
napoleon_include_private_with_doc = False
Expand Down
19 changes: 0 additions & 19 deletions doc/frequency-domain.rst

This file was deleted.

6 changes: 1 addition & 5 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@

installation
examples/index
arrays
frequency-domain
time-domain
plotting
utilities
api
references
contributing
version-history
Expand Down
4 changes: 0 additions & 4 deletions doc/plotting.rst

This file was deleted.

16 changes: 0 additions & 16 deletions doc/time-domain.rst

This file was deleted.

4 changes: 0 additions & 4 deletions doc/utilities.rst

This file was deleted.

2 changes: 2 additions & 0 deletions doc/version-history.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. default-role:: py:obj

.. include:: ../NEWS.rst
3 changes: 0 additions & 3 deletions sfs/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
plt.rcParams['figure.figsize'] = 8, 4.5 # inch
plt.rcParams['axes.grid'] = True
.. autoclass:: ArrayData
:members: take
"""
from collections import namedtuple
import numpy as np
Expand Down
12 changes: 11 additions & 1 deletion sfs/mono/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
"""Submodules for monochromatic sound fields."""
"""Submodules for monochromatic sound fields.
.. autosummary::
:toctree:
drivingfunction
source
synthesized
soundfigure
"""
from . import drivingfunction
from . import source
from . import synthesized
Expand Down
12 changes: 11 additions & 1 deletion sfs/time/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""Submodules for broadband sound fields.
.. autosummary::
:toctree:
drivingfunction
source
soundfield
"""
from . import drivingfunction
from . import source
from . import soundfield
from . import soundfield

0 comments on commit 94b79ce

Please sign in to comment.