'docutils' add a stylesheet to the output html file for direct
consumption. Since we use the html files just as an intermediate step
which is post-processed to add our own stylesheet and drop the docutils
one in the process we can ask 'rst2html' to not add any for an
intermediate file with less garbage.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
html_in_file,
input: rst_file,
output: html_in_file,
- command: [ rst2html_prog, '--strict', '@INPUT@' ],
+ command: [ rst2html_prog, '--stylesheet=', '--strict', '@INPUT@' ],
capture: true,
)
docs_rst2html_gen = generator(
rst2html_prog,
output: '@BASENAME@.html.in',
- arguments: [ '--strict', '@INPUT@' ],
+ arguments: [ '--stylesheet=', '--strict', '@INPUT@' ],
capture: true,
)