From 954a324837c7d38daa52972ba7dd1ce3226edaf3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 10 Feb 2018 16:00:17 +0100 Subject: [PATCH] doxygen: don't populate search data when search is disabled. --- doxygen/dox2html5.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index b09827d9..609df177 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -1409,13 +1409,14 @@ def parse_typedef(state: State, element: ET.Element): typedef.has_details = typedef.description or typedef.has_template_details if typedef.brief or typedef.has_details: - result = Empty() - result.flags = ResultFlag.TYPEDEF|(ResultFlag.DEPRECATED if typedef.is_deprecated else ResultFlag(0)) - result.url = state.current_url + '#' + typedef.id - result.prefix = state.current_prefix - result.name = typedef.name - result.keywords = search_keywords - state.search += [result] + if not state.doxyfile['M_SEARCH_DISABLED']: + result = Empty() + result.flags = ResultFlag.TYPEDEF|(ResultFlag.DEPRECATED if typedef.is_deprecated else ResultFlag(0)) + result.url = state.current_url + '#' + typedef.id + result.prefix = state.current_prefix + result.name = typedef.name + result.keywords = search_keywords + state.search += [result] return typedef return None -- 2.30.2