]> git.ipfire.org Git - thirdparty/libvirt.git/commit
docs/html: Properly generate ACL permissions into API reference
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Feb 2023 21:47:34 +0000 (22:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Feb 2023 17:26:53 +0000 (18:26 +0100)
commit91d890bdced94d567e1abbfd376b01980a3765ce
tree53074b4d90983d2d08ed0cf5fda558cf83b1b7c8
parente0def8d58767c5f382eb84cf7ed01feeb2b8e080
docs/html: Properly generate ACL permissions into API reference

The 'newapi.xsl' stylesheet was referencing non-existing paths to the
XML files holding ACL permission flags for individual APIs. Additionally
the 'document()' XSL function doesn't even allow concatenation of the
path as it was done via '{$builddir}/src..', but requires either direct
argument or use of the 'concat()' function.

This meant that the 'acls' variable was always empty and thus none of
our API documentation was actually generated with the 'acl' section.

Fix it by passing the path to the XML via an argument to the stylesheet
as the files differ based on which document is being generated.

Since the 'admin' API does not have ACL we need to handle it separately
now in the build system.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/html/meson.build
docs/newapi.xsl
src/access/meson.build