]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: newapi.xsl: Remove support for generating index page
authorPeter Krempa <pkrempa@redhat.com>
Wed, 17 May 2023 14:48:09 +0000 (16:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 May 2023 08:06:51 +0000 (10:06 +0200)
Since we need to generate API docs for multiple input files the index
page is not useful for us and was replaced by a manual one. Drop the XSL
for generating it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/newapi.xsl

index cc08b8460a3c0aba8be30ff41207a7e5a76cea20..cc683707cfed019fd00e0dbfa1baa61c0bb4e37f 100644 (file)
@@ -22,8 +22,6 @@
   <!-- Build keys for all symbols -->
   <xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
 
-  <xsl:param name="indexfile" select="''"/>
-
   <!-- the target directory for the HTML output -->
   <xsl:variable name="htmldir">html</xsl:variable>
   <xsl:variable name="href_base">../</xsl:variable>
     </li>
   </xsl:template>
 
-  <xsl:template name="mainpage">
-    <xsl:variable name="title">Reference Manual for <xsl:value-of select="/api/@name"/></xsl:variable>
-    <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;
-</xsl:text>
-    <html>
-      <body>
-        <h1><xsl:value-of select="$title"/></h1>
-        <h2>Table of Contents</h2>
-        <ul>
-          <xsl:apply-templates select="/api/files/file" mode="toc"/>
-        </ul>
-      </body>
-    </html>
-  </xsl:template>
-
   <xsl:template match="/">
-    <!-- Save the main index.html as well as a couple of copies -->
-    <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">
         <xsl:apply-templates select="."/>