From: Vladimír Vondruš Date: Sun, 11 Feb 2018 17:38:45 +0000 (+0100) Subject: doxygen: propagate keywords from inside sections as well. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=0dde8a7da13f44069c6edceaf22cb6468b1aaa5c;p=blog.git doxygen: propagate keywords from inside sections as well. --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 00fb40c0..b00dfc86 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -630,6 +630,8 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. parsed = parse_desc_internal(state, i) assert parsed.section assert not parsed.templates and not parsed.params and not parsed.return_value + if parsed.search_keywords: + out.search_keywords += parsed.search_keywords # Top-level section has no ID or title if not out.section: out.section = ('', '', []) diff --git a/doxygen/test/search/Dir/File.h b/doxygen/test/search/Dir/File.h index 97b5fd59..a0631756 100644 --- a/doxygen/test/search/Dir/File.h +++ b/doxygen/test/search/Dir/File.h @@ -18,10 +18,12 @@ namespace Namespace { /** - * @brief A class - * - * @note Keywords inside a note should be propagated outside: - * @m_keywords{glClass()} +@brief A class + +@section section2 A section, stuff inside should be propagated outside + +@note Keywords inside a note should be propagated outside: + @m_keywords{glClass()} */ class Class { public: