Skip to content

Commit

Permalink
Add api reference to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Jul 12, 2022
1 parent 9ec169a commit 652a89c
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/main/usage/configuration.html
from sphinx.domains.python import PythonDomain

import adcorr

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

# Workaround for NewType as autodata, to be removed when issue is resolved
# see: https://github.com/sphinx-doc/sphinx/issues/9560
assert PythonDomain.object_types["data"].roles == ("data", "obj")
PythonDomain.object_types["data"].roles = ("data", "class", "obj")

# General information about the project.
project = "adcorr"

Expand Down Expand Up @@ -42,7 +48,16 @@
# generating warnings in "nitpicky mode". Note that type should include the
# domain name if present. Example entries would be ('py:func', 'int') or
# ('envvar', 'LD_LIBRARY_PATH').
nitpick_ignore = [("py:func", "int")]
nitpick_ignore: list[tuple[str, str]] = [
("py:class", "dtype"),
("py:class", "floating"),
("py:class", "ndarray"),
("py:class", "numpy.bool_"),
("py:class", "numpy.dtype"),
("py:class", "numpy.floating"),
("py:class", "numpy.ndarray"),
("py:class", "numpy.ma.core.MaskedArray"),
]

# Both the class’ and the __init__ method’s docstring are concatenated and
# inserted into the main body of the autoclass directive
Expand Down
101 changes: 101 additions & 0 deletions docs/reference/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,107 @@ API
``adcorr``
----------

.. automodule:: adcorr.utils

``adcorr.utils``
----------------

.. automodule:: adcorr.utils.geometry
:members:

``adcorr.utils.geometry``
-------------------------

.. automodule:: adcorr.utils.typing
:members:

``adcorr.utils.typing``
-----------------------

.. automodule:: adcorr.angular_efficiency
:members:

``adcorr.angular_efficiency``
-----------------------------

.. automodule:: adcorr.background_subtraction
:members:

``adcorr.background_subtraction``
---------------------------------

.. automodule:: adcorr.dark_current
:members:

``adcorr.dark_current``
-----------------------

.. automodule:: adcorr.deadtime
:members:

``adcorr.deadtime``
-------------------

.. automodule:: adcorr.displaced_volume
:members:

``adcorr.displaced_volume``
---------------------------

.. automodule:: adcorr.flatfield
:members:

``adcorr.flatfield``
--------------------

.. automodule:: adcorr.flux_and_transmission
:members:

``adcorr.flux_and_transmission``
--------------------------------

.. automodule:: adcorr.frame_average
:members:

``adcorr.frame_average``
------------------------

.. automodule:: adcorr.frame_time
:members:

``adcorr.frame_time``
---------------------

.. automodule:: adcorr.masking
:members:

``adcorr.masking``
------------------

.. automodule:: adcorr.polarization
:members:

``adcorr.polarization``
-----------------------

.. automodule:: adcorr.self_absorption
:members:

``adcorr.self_absorption``
--------------------------

.. automodule:: adcorr.solid_angle
:members:

``adcorr.solid_angle``
----------------------

.. automodule:: adcorr.thickness
:members:

``adcorr.thickness``
--------------------

.. data:: adcorr.__version__
:type: str

Expand Down

0 comments on commit 652a89c

Please sign in to comment.