12Create sphinx documentation and make sure that there are no warnings.
13However, a few warnings can not easily be omitted and are therefore accepted for now.
17from b2test_utils
import check_error_free
23except ModuleNotFoundError:
26if __name__ ==
"__main__":
28 ignorebackward =
'_BACKWARD_BACKWARD_WARNING_H'
31 ignoreonlinebook =
'online_book'
33 ignoreaddtriggersimulation =
'add_trigger_simulation'
35 ignoreaddsimulation =
'add_simulation'
37 ignoreaddreconstruction =
'add_reconstruction'
39 ignoreaddcdstoutput =
'add_cdst_output'
41 ignorevalidationtools =
'validation_tools'
43 ignoreincludeproblem =
'Problems with "include" directive path'
45 ignoretrackmatching =
'trk_matching'
47 ignoretrackingeventtimeextraction =
'tracking_eventtimeextraction'
49 check_error_free(
"b2code-sphinx-warnings",
"sphinx",
None,
51 re.findall(ignorebackward, x)
or
52 re.findall(ignoreaddsimulation, x)
or
53 re.findall(ignoreaddtriggersimulation, x)
or
54 re.findall(ignoreaddreconstruction, x)
or
55 re.findall(ignoreaddcdstoutput, x)
or
56 re.findall(ignorevalidationtools, x)
or
57 re.findall(ignoreincludeproblem, x)
or
58 re.findall(ignoreonlinebook, x)
or
59 re.findall(ignoretrackmatching, x)
or
60 re.findall(ignoretrackingeventtimeextraction, x),
64 check_error_free(
"b2code-sphinx-warnings",
"sphinx",
None,
66 re.findall(ignorebackward, x)