From 3bc97991b375b89d72bd83a1b359b8322d5a98ee Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Wed, 31 Jul 2024 11:33:35 -0400 Subject: [PATCH] fix(algolia): add parent class docstring to algolia index (#9739) --- docs/backends/_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/backends/_utils.py b/docs/backends/_utils.py index 3c6f58b5700f..404877f9939d 100644 --- a/docs/backends/_utils.py +++ b/docs/backends/_utils.py @@ -102,7 +102,11 @@ def dump_methods_to_json_for_algolia(backend, methods): "objectID": base_url, "href": base_url, "title": f"{backend_name}.Backend.{method}", - "text": getattr(backend.all_members[method].docstring, "value", ""), + "text": getattr( + find_member_with_docstring(backend.all_members[method]).docstring, + "value", + "", + ), "crumbs": ["Backend API", "API", f"{backend_name} methods"], }