diff --git a/doc/_extensions/zephyr/domain.py b/doc/_extensions/zephyr/domain.py index f40b03a6c51..92bb50cfd78 100644 --- a/doc/_extensions/zephyr/domain.py +++ b/doc/_extensions/zephyr/domain.py @@ -310,7 +310,7 @@ class CustomDoxygenGroupDirective(DoxygenGroupDirective): nodes = super().run() if self.config.zephyr_breathe_insert_related_samples: - return [RelatedCodeSamplesNode(id=self.arguments[0]), *nodes] + return [*nodes, RelatedCodeSamplesNode(id=self.arguments[0])] else: return nodes