Skip to content

Commit 550331d

Browse files
committed
DOC: make an API reference
1 parent 7ac8e8f commit 550331d

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ instance/
7070

7171
# Sphinx documentation
7272
docs/_build/
73+
docs/generated/
7374

7475
# PyBuilder
7576
.pybuilder/

docs/api-reference.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# API Reference
2+
3+
```{eval-rst}
4+
.. currentmodule:: array_api_extra
5+
.. autosummary::
6+
:nosignatures:
7+
:toctree: generated
8+
9+
atleast_nd
10+
```

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
extensions = [
1010
"myst_parser",
1111
"sphinx.ext.autodoc",
12+
"sphinx.ext.autosummary",
1213
"sphinx.ext.intersphinx",
1314
"sphinx.ext.mathjax",
1415
"sphinx.ext.napoleon",

docs/index.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
33
```{toctree}
44
:maxdepth: 2
55
:hidden:
6-
6+
api-reference.md
77
```
88

99
```{include} ../README.md
1010
:start-after: <!-- SPHINX-START -->
1111
```
12-
13-
## Indices and tables
14-
15-
- {ref}`genindex`
16-
- {ref}`modindex`
17-
- {ref}`search`

0 commit comments

Comments
 (0)