]> git.ipfire.org Git - thirdparty/libvirt.git/commit
docs: build: Use proper path to file in 'contribute' link
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Aug 2020 14:38:31 +0000 (16:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Aug 2020 16:41:11 +0000 (18:41 +0200)
commit862cf2ace4f04dadc175caacc74448e96c625ccb
treeae8880a1cdcdc837c9ae940f20e6798b222ae832
parent916e077551e836ef13d8e655e48e8ec6a1a16d10
docs: build: Use proper path to file in 'contribute' link

NEWS.rst is based in the root of the repository and 'hvsupport.html'
doesn't have a backing file which can be edited since it's fully
generated. Our 'contribute -> edit this page' link on the bottom of the
page is wrong in those cases.

Fix it by adding the contribute section only when there's a source and
base the 'source' of a html file in the root of the repository.

Along with that we need to modify the scripts/meson-html-gen.py script
to accept optional 'pagesrc' and the XSL template to skip the
'contribute' section when we don't have a source.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/meson.build
docs/page.xsl
scripts/meson-html-gen.py