Skip to content

Commit df29a8e

Browse files
authored
docs: render module level docstrings in documentation (#218)
* docs: make docstrings render in sphinx * Remove the 'Note' for API docs in `index.rst`
1 parent 7e170d9 commit df29a8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+107
-198
lines changed

docs/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ API reference
8686
-------------
8787
The API reference details the functionality of each ``class`` and ``function`` present in ``vector``'s codebase.
8888

89-
**Note**: Adding missing docstrings is still in progress.
90-
9189
.. toctree::
9290
:maxdepth: 8
9391
:caption: API Reference

src/vector/_compute/lorentz/Et2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
@property
1210
Lorentz.Et2(self)
1311
"""
12+
import typing
1413

1514
import numpy
1615

src/vector/_compute/lorentz/Mt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
@property
1210
Lorentz.Mt(self)
1311
"""
12+
import typing
1413

1514
import numpy
1615

src/vector/_compute/lorentz/Mt2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
@property
1210
Lorentz.Mt2(self)
1311
"""
12+
import typing
1413

1514
import numpy
1615

src/vector/_compute/lorentz/add.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
Lorentz.add(self, other)
1210
"""
11+
import typing
1312

1413
import numpy
1514

src/vector/_compute/lorentz/beta.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
@property
1210
Lorentz.beta(self)
1311
"""
12+
import typing
1413

1514
import numpy
1615

src/vector/_compute/lorentz/boostX_beta.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
Lorentz.boostX(self, beta=...)
1210
"""
11+
import typing
1312

1413
import numpy
1514

src/vector/_compute/lorentz/boostX_gamma.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
Lorentz.boostX(self, gamma=)
1210
"""
11+
import typing
1312

1413
import numpy
1514

src/vector/_compute/lorentz/boostY_beta.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
Lorentz.boostY(self, beta=...)
1210
"""
11+
import typing
1312

1413
import numpy
1514

src/vector/_compute/lorentz/boostY_gamma.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
44
# or https://github.com/scikit-hep/vector for details.
55

6-
import typing
7-
86
"""
97
.. code-block:: python
108
119
Lorentz.boostY(self, gamma=...)
1210
"""
11+
import typing
1312

1413
import numpy
1514

0 commit comments

Comments
 (0)