mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: docs: introduce docs_rst2html_gen generator
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
914a4d8586
commit
75ddfa96c1
@ -320,10 +320,6 @@ news.html.in: $(top_srcdir)/NEWS.rst
|
||||
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
||||
$(RST2HTML) --strict $< > $@ || { rm $@ && exit 1; }
|
||||
|
||||
%.html.in: %.rst
|
||||
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
||||
$(RST2HTML) --strict $< > $@ || { rm $@ && exit 1; }
|
||||
|
||||
%.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \
|
||||
$(acl_generated)
|
||||
$(AM_V_GEN)name=`echo $@ | sed -e 's/.tmp//'`; \
|
||||
|
@ -73,3 +73,10 @@ docs_api_xml = docs_api_generated[0]
|
||||
docs_lxc_api_xml = docs_api_generated[1]
|
||||
docs_qemu_api_xml = docs_api_generated[2]
|
||||
docs_admin_api_xml = docs_api_generated[3]
|
||||
|
||||
docs_rst2html_gen = generator(
|
||||
rst2html_prog,
|
||||
output: '@BASENAME@.html.in',
|
||||
arguments: [ '--strict', '@INPUT@' ],
|
||||
capture: true,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user