]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: build: Don't include stylesheet in intermediate html files generated from RST
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Aug 2020 05:32:29 +0000 (07:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Aug 2020 16:41:11 +0000 (18:41 +0200)
'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>
docs/manpages/meson.build
docs/meson.build

index e9d9ac8069a5265562656b7d671351446dc7e3a7..97133adf3ad6f0371e89ebe7bec42c242a292195 100644 (file)
@@ -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,
   )
 
index aaa30405985c851cea8ee67051e4e3140c5954f5..59d5f7bd4e015a61524c0d8b9093e6ca989c8f19 100644 (file)
@@ -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,
 )