Skip to content

Commit 2ec0a58

Browse files
committed
fix(builder): more robust fetching of docstring description
1 parent 55d4e98 commit 2ec0a58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

quartodoc/autosummary.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,9 @@ def _render_object(self, obj):
391391

392392
# TODO: look up from inventory?
393393
link = self.render_item_link(obj)
394-
if len(docstring_parts):
394+
if len(docstring_parts) and isinstance(
395+
docstring_parts[0], ds.DocstringSectionText
396+
):
395397
# TODO: or canonical_path
396398
description = docstring_parts[0].value
397399
short = description.split("\n")[0]

0 commit comments

Comments
 (0)