From 3a4b91fad7b0f5d07c1b3683d608535c5131f278 Mon Sep 17 00:00:00 2001 From: "Tom A. Wagner" Date: Fri, 25 Aug 2023 13:50:39 +0200 Subject: [PATCH] Add enum documentation and `Since` tag to the generated gir file Fix gen-api-gtkdoc.py to also parse an enums detailed description, which may contain a `since` attribute. This makes the enums documentation and `Since` attribute end up in the final .gir file. --- docs/gen-api-gtkdoc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/gen-api-gtkdoc.py b/docs/gen-api-gtkdoc.py index 92e63c0d..a9a80644 100644 --- a/docs/gen-api-gtkdoc.py +++ b/docs/gen-api-gtkdoc.py @@ -271,6 +271,7 @@ class DoxyEnum(DoxyElement): e = DoxyEnum(name, d) e.add_brief(xml.find("briefdescription")) + e.add_detail(xml.find("detaileddescription")) for p in xml.findall("enumvalue"): e.add_member(p) return e