[rtems-central commit] interfacedoc: Substitute group descriptions

Sebastian Huber sebh at rtems.org
Thu Apr 22 05:15:37 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    14378aae12b59e52707c78a4c1e41428874c6fcf
Changeset: http://git.rtems.org/rtems-central/commit/?id=14378aae12b59e52707c78a4c1e41428874c6fcf

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Apr 21 09:53:32 2021 +0200

interfacedoc: Substitute group descriptions

---

 rtemsspec/interfacedoc.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rtemsspec/interfacedoc.py b/rtemsspec/interfacedoc.py
index 0787c20..1091f98 100644
--- a/rtemsspec/interfacedoc.py
+++ b/rtemsspec/interfacedoc.py
@@ -107,8 +107,9 @@ def _generate_introduction(target: str, group: Item, group_uids: List[str],
 
         content.append("")
         content.gap = False
-        content.wrap(group["brief"])
-        content.wrap(group["description"])
+        mapper = _Mapper(group, group_uids)
+        content.wrap(mapper.substitute(group["brief"]))
+        content.wrap(mapper.substitute(group["description"]))
         content.paste(f"The directives provided by the {group_name} are:")
 
         for item in items:



More information about the vc mailing list