12 Create sphinx documentation and make sure that there are no warnings.
13 However, a few warnings can not easily be omitted and are therefore accepted for now.
17 from b2test_utils
import check_error_free
23 except ModuleNotFoundError:
26 if __name__ ==
"__main__":
28 ignoreenvironmentvariables =
'envvar'
30 ignorepythonclass =
'py:class reference target not found'
32 ignoreduplicatewhatsnewlabel =
'duplicate label whatsnew:'
34 ignoreduplicatedescriptionofrole =
'duplicate description of role'
37 ignoreonlinebook =
'online_book'
39 ignoreaddtriggersimulation =
'add_trigger_simulation'
41 ignoreaddsimulation =
'add_simulation'
43 ignoreaddreconstruction =
'add_reconstruction'
45 ignoreaddcdstoutput =
'add_cdst_output'
47 ignorevalidationtools =
'validation_tools'
49 ignoreincludeproblem =
'Problems with "include" directive path'
51 check_error_free(
"b2code-sphinx-warnings",
"sphinx",
None,
53 re.findall(ignoreenvironmentvariables, x)
or
54 re.findall(ignorepythonclass, x)
or
55 re.findall(ignoreduplicatewhatsnewlabel, x)
or
56 re.findall(ignoreduplicatedescriptionofrole, x)
or
57 re.findall(ignoreaddsimulation, x)
or
58 re.findall(ignoreaddtriggersimulation, x)
or
59 re.findall(ignoreaddreconstruction, x)
or
60 re.findall(ignoreaddcdstoutput, x)
or
61 re.findall(ignorevalidationtools, x)
or
62 re.findall(ignoreincludeproblem, x)
or
63 re.findall(ignoreonlinebook, x),
67 check_error_free(
"b2code-sphinx-warnings",
"sphinx",
None,
69 re.findall(ignoreenvironmentvariables, x)
or
70 re.findall(ignorepythonclass, x)
or
71 re.findall(ignoreduplicatewhatsnewlabel, x)
or
72 re.findall(ignoreduplicatedescriptionofrole, x)