Skip to content

Commit

Permalink
fix(algolia): add parent class docstring to algolia index (#9739)
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored Jul 31, 2024
1 parent df43c33 commit 3bc9799
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/backends/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}

Expand Down

0 comments on commit 3bc9799

Please sign in to comment.