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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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, '&lt;http://') and contains($token, '&gt;')">
         <xsl:variable name="link"
                       select="substring(substring-before($token, '&gt;'), 2)"/>
-- 
2.37.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux