From: Peter Krempa Date: Mon, 3 Aug 2020 05:32:29 +0000 (+0200) Subject: docs: build: Don't include stylesheet in intermediate html files generated from RST X-Git-Tag: v6.7.0-rc1~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a066f810f7c567d20eb6fddb0ac5dc84812907b5;p=thirdparty%2Flibvirt.git docs: build: Don't include stylesheet in intermediate html files generated from RST '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 Reviewed-by: Ján Tomko --- diff --git a/docs/manpages/meson.build b/docs/manpages/meson.build index e9d9ac8069..97133adf3a 100644 --- a/docs/manpages/meson.build +++ b/docs/manpages/meson.build @@ -99,7 +99,7 @@ foreach data : docs_man_files html_in_file, input: rst_file, output: html_in_file, - command: [ rst2html_prog, '--strict', '@INPUT@' ], + command: [ rst2html_prog, '--stylesheet=', '--strict', '@INPUT@' ], capture: true, ) diff --git a/docs/meson.build b/docs/meson.build index aaa3040598..59d5f7bd4e 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -188,7 +188,7 @@ docs_admin_api_xml = docs_api_generated[3] docs_rst2html_gen = generator( rst2html_prog, output: '@BASENAME@.html.in', - arguments: [ '--strict', '@INPUT@' ], + arguments: [ '--stylesheet=', '--strict', '@INPUT@' ], capture: true, )