[rtems-central commit] sphinxcontent: Support recursive mappings

Sebastian Huber sebh at rtems.org
Mon Oct 26 13:09:22 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Oct 26 13:51:33 2020 +0100

sphinxcontent: Support recursive mappings

---

 rtemsspec/sphinxcontent.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py
index b303d92..5f5493f 100644
--- a/rtemsspec/sphinxcontent.py
+++ b/rtemsspec/sphinxcontent.py
@@ -251,8 +251,8 @@ def _get_value_sphinx_unspecified_type(ctx: ItemGetValueContext) -> Any:
 
 class SphinxMapper(ItemMapper):
     """ Sphinx item mapper. """
-    def __init__(self, item: Item):
-        super().__init__(item)
+    def __init__(self, item: Item, recursive: bool = False):
+        super().__init__(item, recursive)
         self.add_get_value("glossary/term:/term", _get_ref_term)
         self.add_get_value("glossary/term:/plural", _get_ref_term_plural)
         self.add_get_value("interface/appl-config-option/feature-enable:/name",



More information about the vc mailing list