Skip to content

Commit

Permalink
🐛 FIX: Exception on missing card link
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Apr 20, 2022
1 parent f452be7 commit f46f051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_design/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def create_card(
"refexplicit": True,
"refwarn": True,
}
link = addnodes.pending_xref("", nodes.Text(""), **options)
link = addnodes.pending_xref("", nodes.inline(), **options)
inst.set_source_info(link)
link_container += link
container.append(link_container)
Expand Down
1 change: 1 addition & 0 deletions tests/test_snippets/snippet_pre_card-link.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
reference target.
<PassthroughTextElement>
<pending_xref classes="sd-stretched-link" refdoc="index" refdomain="std" refexplicit="True" reftarget="cards-clickable" reftype="ref" refwarn="True">
<inline>

0 comments on commit f46f051

Please sign in to comment.