[PATCH 10/11] docs: xsl: Properly propagate 'href_base' as XSL template parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 docs/html/meson.build | 2 ++
 docs/newapi.xsl       | 2 +-
 docs/page.xsl         | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/html/meson.build b/docs/html/meson.build
index e2758ed177..abb4fcf72a 100644
--- a/docs/html/meson.build
+++ b/docs/html/meson.build
@@ -27,6 +27,7 @@ index_api_gen = custom_target(
     xsltproc_prog, '--nonet', '-o', docs_builddir,
     '--stringparam', 'builddir', meson.project_build_root(),
     '--stringparam', 'timestamp', docs_timestamp,
+    '--stringparam', 'href_base', '../',
     '@INPUT@',
   ],
   install: true,
@@ -53,6 +54,7 @@ foreach name : [ 'admin', 'lxc', 'qemu' ]
       xsltproc_prog, '--nonet', '-o', docs_builddir,
       '--stringparam', 'builddir', meson.project_build_root(),
       '--stringparam', 'timestamp', docs_timestamp,
+      '--stringparam', 'href_base', '../',
       '@INPUT@',
     ],
     install: true,
diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 19a440bb09..ebe7fdedd7 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -24,7 +24,6 @@

   <!-- the target directory for the HTML output -->
   <xsl:variable name="htmldir">html</xsl:variable>
-  <xsl:variable name="href_base">../</xsl:variable>

   <xsl:template name="aclinfo">
     <xsl:param name="acl"/>
@@ -816,6 +815,7 @@
         encoding="UTF-8">
         <xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
           <xsl:with-param name="timestamp" select="$timestamp"/>
+          <xsl:with-param name="href_base" select="$href_base"/>
         </xsl:apply-templates>
       </xsl:document>
     </xsl:for-each>
diff --git a/docs/page.xsl b/docs/page.xsl
index e2f0092ae9..5d55fac43f 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -17,6 +17,7 @@
   <xsl:template match="/" mode="page">
     <xsl:param name="pagesrc"/>
     <xsl:param name="timestamp"/>
+    <xsl:param name="href_base"/>
     <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;
 </xsl:text>
     <html data-sourcedoc="{$pagesrc}">
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux