docs: Use '--exit-status=' option for 'rst2html5'

Ensure that also 'non-halting' messages stop the build process.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Peter Krempa 2023-05-25 15:36:28 +02:00
parent 9f49f60aca
commit 2380242928

View File

@ -210,7 +210,7 @@ endif
docs_rst2html5_gen = generator( docs_rst2html5_gen = generator(
rst2html5_prog, rst2html5_prog,
output: '@BASENAME@.html.in', output: '@BASENAME@.html.in',
arguments: [ '--stylesheet=', '--strict', '@INPUT@' ], arguments: [ '--exit-status=1', '--stylesheet=', '--strict', '@INPUT@' ],
capture: true, capture: true,
) )