]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: fix include of ACL permissions files
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 20 Nov 2019 15:24:18 +0000 (15:24 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 22 Nov 2019 11:14:20 +0000 (11:14 +0000)
The XSL generator loads included HTML files relative to the source dir
but we need to tell it to load them from the build dir instead.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/Makefile.am
docs/newapi.xsl
docs/page.xsl

index 5c76891ba4f24fc4a928bb6dabf7a192e74fd8bf..2a104bc8376d43e2445666ad0afacbdf2cbe4a4d 100644 (file)
@@ -293,6 +293,7 @@ EXTRA_DIST += \
            style=subsite.xsl; \
          fi; \
          $(XSLTPROC) --stringparam pagename $$name \
+           --stringparam builddir '$(abs_top_builddir)' \
            --stringparam timestamp $(timestamp) --nonet \
            $(top_srcdir)/docs/$$style $< > $@ \
            || { rm $@ && exit 1; }
index dd6169397b58b6eadc75fa49987f8b609b2860a1..670879dc4871dbfbc4228af6b2ed2483c9df3599 100644 (file)
@@ -22,7 +22,6 @@
   <!-- Build keys for all symbols -->
   <xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
 
-  <xsl:param name="builddir" select="'..'"/>
   <xsl:param name="indexfile" select="'index.html'"/>
 
   <!-- the target directory for the HTML output -->
index 65ddeb2bb7cd8656fd88920107079479757fd992..6f429ae087c53df56a562a09e9813cc0c2efe141 100644 (file)
@@ -7,6 +7,8 @@
   exclude-result-prefixes="xsl exsl html"
   version="1.0">
 
+  <xsl:param name="builddir" select="'..'"/>
+
   <xsl:template match="node() | @*" mode="content">
     <xsl:copy>
       <xsl:apply-templates select="node() | @*" mode="content"/>
 
   <xsl:template name="include">
     <xsl:variable name="inchtml">
-      <xsl:copy-of select="document(@filename)"/>
+      <xsl:copy-of select="document(concat($builddir, '/docs/', @filename))"/>
     </xsl:variable>
 
     <xsl:apply-templates select="exsl:node-set($inchtml)/html:html/html:body/*" mode="content"/>