3 # SPDX-License-Identifier: MIT
5 # Copyright The SCons Foundation
7 # Searches through the whole source tree and validates all
8 # documentation files against our own XSD in docs/xsd.
13 if __name__
== "__main__":
15 if SConsDoc
.validate_all_xml((sys
.argv
[1],)):
18 print("Validation failed! Please correct the errors above and try again.")
21 if SConsDoc
.validate_all_xml(
24 os
.path
.join('doc', 'design'),
25 os
.path
.join('doc', 'developer'),
26 os
.path
.join('doc', 'man'),
27 os
.path
.join('doc', 'python10'),
28 os
.path
.join('doc', 'reference'),
29 os
.path
.join('doc', 'user'),
34 print("Validation failed! Please correct the errors above and try again.")