diff --git a/doc/build.py b/doc/build.py index 4335232d..7f5720b6 100755 --- a/doc/build.py +++ b/doc/build.py @@ -88,9 +88,11 @@ def build_docs(version='dev', **kwargs): EXCLUDE_SYMBOLS = fmt::formatter fmt::printf_formatter fmt::arg_join \ fmt::basic_format_arg::handle '''.format(include_dir, doxyxml_dir).encode('UTF-8')) - out = re.sub( - ".*warning: Member .* of class fmt::detail::.* is not documented.\n", - "", out) + noisy_warnings = [ + 'warning: .* fmt::detail::.* is not documented.' + ] + for w in noisy_warnings: + out = re.sub('.*' + w + '\n', '', out) print(out) if p.returncode != 0: raise CalledProcessError(p.returncode, cmd)