summaryrefslogtreecommitdiffstats
path: root/rtemsspec/sphinxcontent.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-12-16 07:46:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-12-16 07:47:32 +0100
commit869075be652b31fde3bc87d731fa1f8cdc7150cb (patch)
tree1c8560d785f2cd1ebf94f90cd9e2ecdc0ca9161b /rtemsspec/sphinxcontent.py
parentmodules: Update rtems (diff)
downloadrtems-central-869075be652b31fde3bc87d731fa1f8cdc7150cb.tar.bz2
sphinxcontent: Improve formatting of structures
Diffstat (limited to 'rtemsspec/sphinxcontent.py')
-rw-r--r--rtemsspec/sphinxcontent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtemsspec/sphinxcontent.py b/rtemsspec/sphinxcontent.py
index e0084af8..1fc3d3c7 100644
--- a/rtemsspec/sphinxcontent.py
+++ b/rtemsspec/sphinxcontent.py
@@ -224,6 +224,8 @@ def _get_value_sphinx_function(ctx: ItemGetValueContext) -> Any:
def _get_value_sphinx_type(ctx: ItemGetValueContext) -> Any:
+ if ctx.item.get("definition-kind", "") == "struct-only":
+ return f"``struct {ctx.value[ctx.key]}``"
return f":c:type:`{ctx.value[ctx.key]}`"