[PATCH 1/4] docs: newapi: Consider also 'https://' links in the API generator XSL

Peter Krempa pkrempa at redhat.com
Tue Aug 23 11:32:37 UTC 2022


We converted exclusively to https links so the generator should wrap
those in appropriate link tags too.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 docs/newapi.xsl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index e56a5f2a27..f2e8bd5334 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -131,6 +131,11 @@
           <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, '<http://') and contains($token, '>')">
         <xsl:variable name="link"
                       select="substring(substring-before($token, '>'), 2)"/>
-- 
2.37.1



More information about the libvir-list mailing list