xsltproc_prog, '--nonet', '-o', docs_builddir,
'--stringparam', 'builddir', meson.project_build_root(),
'--stringparam', 'timestamp', docs_timestamp,
+ '--stringparam', 'indexfile', 'index.html',
'@INPUT@',
],
install: true,
get_variable('docs_@0@_api_xml'.format(name)),
],
output: [
- 'index-@0@.html'.format(name),
'libvirt-libvirt-@0@.html'.format(name),
],
command: [
xsltproc_prog, '--nonet', '-o', docs_builddir,
'--stringparam', 'builddir', meson.project_build_root(),
'--stringparam', 'timestamp', docs_timestamp,
- '--stringparam', 'indexfile', 'index-@0@.html'.format(name),
'@INPUT@',
],
install: true,
<!-- Build keys for all symbols -->
<xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
- <xsl:param name="indexfile" select="'index.html'"/>
+ <xsl:param name="indexfile" select="''"/>
<!-- the target directory for the HTML output -->
<xsl:variable name="htmldir">html</xsl:variable>
<xsl:template match="/">
<!-- Save the main index.html as well as a couple of copies -->
- <xsl:variable name="mainpage">
- <xsl:call-template name="mainpage"/>
- </xsl:variable>
- <xsl:document
- href="{concat($htmldir, '/', $indexfile)}"
- method="xml"
- indent="yes"
- encoding="UTF-8">
- <xsl:apply-templates select="exsl:node-set($mainpage)" mode="page">
- <xsl:with-param name="timestamp" select="$timestamp"/>
- </xsl:apply-templates>
- </xsl:document>
+ <xsl:if test="$indexfile != ''">
+ <xsl:variable name="mainpage">
+ <xsl:call-template name="mainpage"/>
+ </xsl:variable>
+ <xsl:document
+ href="{concat($htmldir, '/', $indexfile)}"
+ method="xml"
+ indent="yes"
+ encoding="UTF-8">
+ <xsl:apply-templates select="exsl:node-set($mainpage)" mode="page">
+ <xsl:with-param name="timestamp" select="$timestamp"/>
+ </xsl:apply-templates>
+ </xsl:document>
+ </xsl:if>
<xsl:for-each select="/api/files/file">
<xsl:variable name="subpage">