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é <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-09-20 13:00:38 +02:00 committed by Fabio Baltieri
parent 6c86af0331
commit 108893304a
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ class ZephyrDomain(Domain):
code_sample_info["docname"],
code_sample_info["id"],
contnode,
code_sample_info["description"],
code_sample_info["description"].astext(),
)
def add_code_sample(self, code_sample):