mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 14:40:22 -05:00
Restore `sphinx.ext.autosummary.get_documenter()`
This commit is contained in:
1 parent
8fa07f1c04
commit
8a6663fefe
1 file changed
+11
@@ -180,6 +180,17 @@ class FakeDirective(DocumenterBridge):
|
||||
super().__init__(env, None, Options(), 0, state)
|
||||
|
||||
|
||||
def get_documenter(app: Sphinx, obj: Any, parent: Any) -> type[Documenter]:
|
||||
"""Get an autodoc.Documenter class suitable for documenting the given
|
||||
object.
|
||||
|
||||
*obj* is the Python object to be documented, and *parent* is an
|
||||
another Python object (e.g. a module or a class) to which *obj*
|
||||
belongs to.
|
||||
"""
|
||||
return _get_documenter(obj, parent, registry=app.registry)
|
||||
|
||||
|
||||
def _get_documenter(
|
||||
obj: Any, parent: Any, *, registry: SphinxComponentRegistry
|
||||
) -> type[Documenter]:
|
||||
|
||||
Reference in new issue
Block a user