Skip to content

Commit ed07b59

Browse files
committed
add kwargs for generate_autosummary_content() that are specific to sphinx >= 8.2 specific
1 parent e218d1c commit ed07b59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plasmapy_sphinx/automodsumm/generate.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ def generate_docs(
322322
}
323323
if Version(sphinx_version) < Version("8.2"):
324324
_kwargs["app"] = app
325+
else:
326+
_kwargs["config"] = app.config
327+
_kwargs["events"] = app.events
328+
_kwargs["registry"] = app.registry
329+
325330
content = generate_autosummary_content(**_kwargs)
326331

327332
filename = os.path.join(path, filename_map.get(name, name) + suffix)

0 commit comments

Comments
 (0)