mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
docs: xsl: Properly propagate 'href_base' as XSL template parameter
Propagate it as a parameter both from site.xsl and from newapi.xsl, the latter of which declared it as a variable. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8c0e313339
commit
334858bd40
@ -27,6 +27,7 @@ index_api_gen = custom_target(
|
|||||||
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
||||||
'--stringparam', 'builddir', meson.project_build_root(),
|
'--stringparam', 'builddir', meson.project_build_root(),
|
||||||
'--stringparam', 'timestamp', docs_timestamp,
|
'--stringparam', 'timestamp', docs_timestamp,
|
||||||
|
'--stringparam', 'href_base', '../',
|
||||||
'@INPUT@',
|
'@INPUT@',
|
||||||
],
|
],
|
||||||
install: true,
|
install: true,
|
||||||
@ -53,6 +54,7 @@ foreach name : [ 'admin', 'lxc', 'qemu' ]
|
|||||||
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
||||||
'--stringparam', 'builddir', meson.project_build_root(),
|
'--stringparam', 'builddir', meson.project_build_root(),
|
||||||
'--stringparam', 'timestamp', docs_timestamp,
|
'--stringparam', 'timestamp', docs_timestamp,
|
||||||
|
'--stringparam', 'href_base', '../',
|
||||||
'@INPUT@',
|
'@INPUT@',
|
||||||
],
|
],
|
||||||
install: true,
|
install: true,
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
<!-- the target directory for the HTML output -->
|
<!-- the target directory for the HTML output -->
|
||||||
<xsl:variable name="htmldir">html</xsl:variable>
|
<xsl:variable name="htmldir">html</xsl:variable>
|
||||||
<xsl:variable name="href_base">../</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:template name="aclinfo">
|
<xsl:template name="aclinfo">
|
||||||
<xsl:param name="acl"/>
|
<xsl:param name="acl"/>
|
||||||
@ -816,6 +815,7 @@
|
|||||||
encoding="UTF-8">
|
encoding="UTF-8">
|
||||||
<xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
|
<xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
|
||||||
<xsl:with-param name="timestamp" select="$timestamp"/>
|
<xsl:with-param name="timestamp" select="$timestamp"/>
|
||||||
|
<xsl:with-param name="href_base" select="$href_base"/>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:document>
|
</xsl:document>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<xsl:template match="/" mode="page">
|
<xsl:template match="/" mode="page">
|
||||||
<xsl:param name="pagesrc"/>
|
<xsl:param name="pagesrc"/>
|
||||||
<xsl:param name="timestamp"/>
|
<xsl:param name="timestamp"/>
|
||||||
|
<xsl:param name="href_base"/>
|
||||||
<xsl:text disable-output-escaping="yes"><!DOCTYPE html>
|
<xsl:text disable-output-escaping="yes"><!DOCTYPE html>
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
<html data-sourcedoc="{$pagesrc}">
|
<html data-sourcedoc="{$pagesrc}">
|
||||||
|
Loading…
Reference in New Issue
Block a user