summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-26 13:51:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-26 14:00:36 +0100
commitdec8e2509f09c5b04cda432cb5368fbc5fa76502 (patch)
treeab18744a18bcf57b0f3c427d558833a94de9fbca
parentspec: Move glossary specification (diff)
downloadrtems-central-dec8e2509f09c5b04cda432cb5368fbc5fa76502.tar.bz2
sphinxcontent: Support recursive mappings
-rw-r--r--rtemsspec/sphinxcontent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py
index b303d92e..5f5493fc 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",