12Create sphinx documentation for a light release and make sure that there are no warnings.
13However, a few warnings can not easily be omitted and are therefore accepted for now.
18from b2test_utils
import check_error_free
21if __name__ ==
"__main__":
24 ignorebackward =
'_BACKWARD_BACKWARD_WARNING_H'
26 ignoreprocessstatistics =
'ProcessStatistics.ModuleStatistics'
29 ignoreonlinebook =
'online_book'
31 ignoreaddtriggersimulation =
'add_trigger_simulation'
33 ignoreaddsimulation =
'add_simulation'
35 ignoreaddreconstruction =
'add_reconstruction'
37 ignoreaddcdstoutput =
'add_cdst_output'
39 ignorevalidationtools =
'validation_tools'
41 ignoreincludeproblem =
'Problems with "include" directive path'
43 ignoretrackmatching =
'trk_matching'
45 ignoretrackingeventtimeextraction =
'tracking_eventtimeextraction'
47 sphinx_output_dir = os.getenv(
"BELLE2_SPHINX_LIGHT_OUTPUTDIR")
49 "b2code-sphinx-warnings",
"sphinx",
None,
51 re.findall(ignorebackward, x)
or
52 re.findall(ignoreprocessstatistics, x)
or
53 re.findall(ignoreaddsimulation, x)
or
54 re.findall(ignoreaddtriggersimulation, x)
or
55 re.findall(ignoreaddreconstruction, x)
or
56 re.findall(ignoreaddcdstoutput, x)
or
57 re.findall(ignorevalidationtools, x)
or
58 re.findall(ignoreincludeproblem, x)
or
59 re.findall(ignoreonlinebook, x)
or
60 re.findall(ignoretrackmatching, x)
or
61 re.findall(ignoretrackingeventtimeextraction, x),
62 [
'--light'] + [
"-o", sphinx_output_dir]
if sphinx_output_dir
else []