diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-02-10 11:04:09 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-02-14 08:32:13 +0100 |
commit | 186f4492bf9974037ed23550af76f8ea989f88d5 (patch) | |
tree | ccf2be62611d676e6c973824e9931a16c3ea5ab5 /rtemsspec/sphinxcontent.py | |
parent | spec: Add header file references (diff) | |
download | rtems-central-186f4492bf9974037ed23550af76f8ea989f88d5.tar.bz2 |
rtemsspec: Add a get value for header files
Diffstat (limited to 'rtemsspec/sphinxcontent.py')
-rw-r--r-- | rtemsspec/sphinxcontent.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py index 1002f9ce..199ee874 100644 --- a/rtemsspec/sphinxcontent.py +++ b/rtemsspec/sphinxcontent.py @@ -27,8 +27,8 @@ from contextlib import contextmanager from typing import Any, Iterable, Iterator, List, Optional, Sequence, Union -from rtemsspec.content import Content, get_value_plural, make_lines, \ - to_camel_case +from rtemsspec.content import Content, get_value_header_file, \ + get_value_plural, make_lines, to_camel_case from rtemsspec.items import Item, ItemGetValue, ItemGetValueContext, ItemMapper GenericContent = Union[str, List[str], "Content"] @@ -286,6 +286,8 @@ class SphinxMapper(ItemMapper): _get_value_sphinx_macro) self.add_get_value("interface/function:/name", _get_value_sphinx_function) + self.add_get_value("interface/header-file:/path", + get_value_header_file) self.add_get_value("interface/macro:/name", _get_value_sphinx_function) self.add_get_value("interface/struct:/name", _get_value_sphinx_type) self.add_get_value("interface/typedef:/name", _get_value_sphinx_type) |