Skip to content

Commit 3a3c7f6

Browse files
authored
Add ADR
1 parent 48de971 commit 3a3c7f6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# 19. Use autosummary to create API docs
2+
3+
Date: 2024-09-10
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
The current sphinx API documentation requires you to paste automodule directives in for each subpackage. This is counter intuitive and also places all the docs on one page. People saw a blank page and assumed API generation was broken.
12+
13+
Using autosummary would give a nicer summary, but requires pasting custom templates in which makes sphinx-autobuild keep reloading forever.
14+
15+
Using autodoc2 would allow md docstrings, but doesn't work with pydantic, and doesn't support google or numpy docstrings.
16+
17+
## Decision
18+
19+
Decided to use autosummary, with one page per subpackage. This means at most 2 reloads of sphinx-autobuild before it settles, which is reasonable.
20+
21+
## Consequences
22+
23+
Try to push a bit of the custom template (generating public_members in member order) up to sphinx.

0 commit comments

Comments
 (0)