docs/build.py: Add support for xml and pseudoxml output formats

Useful for debugging layout of generated docutils nodes
develop
lethosor 2022-07-27 22:03:03 -04:00
parent ddae1aa900
commit a2bca50587
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 2 additions and 0 deletions

@ -28,6 +28,8 @@ OUTPUT_FORMATS = {
'html': SphinxOutputFormat('html', pre_args=['-b', 'html']),
'text': SphinxOutputFormat('text', pre_args=['-b', 'text']),
'pdf': SphinxOutputFormat('pdf', pre_args=['-M', 'latexpdf']),
'xml': SphinxOutputFormat('xml', pre_args=['-b', 'xml']),
'pseudoxml': SphinxOutputFormat('pseudoxml', pre_args=['-b', 'pseudoxml']),
}
def _parse_known_args(parser, source_args):