From 65268818fc1679203dbc5c4beab1d25c8dd44ada Mon Sep 17 00:00:00 2001 From: Dmitriy Marin Date: Wed, 11 Sep 2024 14:14:15 +0200 Subject: [PATCH 1/2] Fix Brief.has(): check for briefdescription This commit fixes the issue #113: No brief description in detailed output for members if there is no detailed description --- mkdoxy/property.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdoxy/property.py b/mkdoxy/property.py index 642c51c1..b3f16eaa 100644 --- a/mkdoxy/property.py +++ b/mkdoxy/property.py @@ -49,7 +49,7 @@ def plain(self) -> str: return self.md(plain=True) def has(self) -> bool: - detaileddescription = self.xml.find("detaileddescription") + detaileddescription = self.xml.find("briefdescription") return len(list(detaileddescription)) > 0 class Includes: From f7fcdc9ee7736e614326c77e9d8220b7f8640689 Mon Sep 17 00:00:00 2001 From: Dmitriy Marin Date: Wed, 11 Sep 2024 14:17:02 +0200 Subject: [PATCH 2/2] Fix the Detailed Description header level in the member template --- mkdoxy/templates/member.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdoxy/templates/member.jinja2 b/mkdoxy/templates/member.jinja2 index 39304e33..98075b37 100644 --- a/mkdoxy/templates/member.jinja2 +++ b/mkdoxy/templates/member.jinja2 @@ -68,7 +68,7 @@ Inherited by the following classes: {{ templateMemTab.render({'config': {"":""}, 'node': node, 'parent': None, 'title': 'Macros', 'visibility': 'public', 'kinds': ['define'], 'static': False}) }} {%- if node.has_details %} -# Detailed Description +## Detailed Description {{node.details | use_code_language(node.code_language)}} {%- endif %}