From 0dde8a7da13f44069c6edceaf22cb6468b1aaa5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 11 Feb 2018 18:38:45 +0100 Subject: [PATCH] doxygen: propagate keywords from inside sections as well. --- doxygen/dox2html5.py | 2 ++ doxygen/test/search/Dir/File.h | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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: -- 2.30.2