Skip to content

Commit

Permalink
🐛 FIX: Exception on missing card link (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Apr 20, 2022
1 parent f452be7 commit 60b993f
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 60b993f

Please sign in to comment.