From 108893304a493216f7c377f8c52557cf92bc4f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Wed, 20 Sep 2023 13:00:38 +0200 Subject: [PATCH] doc: code-sample: Fix "text" attribute for code sample links. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- doc/_extensions/zephyr/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/_extensions/zephyr/domain.py b/doc/_extensions/zephyr/domain.py index d9ba85114fd..46451e1f682 100644 --- a/doc/_extensions/zephyr/domain.py +++ b/doc/_extensions/zephyr/domain.py @@ -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):