]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: newapi: Consider also 'https://' links in the API generator XSL
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Aug 2022 11:13:52 +0000 (13:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 1 Sep 2022 11:11:09 +0000 (13:11 +0200)
We converted exclusively to https links so the generator should wrap
those in appropriate link tags too.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
docs/newapi.xsl

index e56a5f2a2761e4853c94dc4ff1d2761638618072..f2e8bd53344341d2006b60646f790738dee2e836 100644 (file)
           <xsl:value-of select="$token"/>
         </a>
       </xsl:when>
+      <xsl:when test="starts-with($token, 'https://')">
+        <a href="{$token}">
+          <xsl:value-of select="$token"/>
+        </a>
+      </xsl:when>
       <xsl:when test="starts-with($token, '&lt;http://') and contains($token, '&gt;')">
         <xsl:variable name="link"
                       select="substring(substring-before($token, '&gt;'), 2)"/>