Skip to content

Commit 1088933

Browse files
kartbenfabiobaltieri
authored andcommitted
doc: code-sample: Fix "text" attribute for code sample links.
A link to a code-sample should have its "text" attribute set to the text description of the sample, not the description _node_. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 6c86af0 commit 1088933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_extensions/zephyr/domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def resolve_xref(self, env, fromdocname, builder, type, target, node, contnode):
267267
code_sample_info["docname"],
268268
code_sample_info["id"],
269269
contnode,
270-
code_sample_info["description"],
270+
code_sample_info["description"].astext(),
271271
)
272272

273273
def add_code_sample(self, code_sample):

0 commit comments

Comments
 (0)