docs: newapi: Consider also 'https://' links in the API generator XSL

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>
This commit is contained in:
Peter Krempa 2022-08-23 13:13:52 +02:00
parent 3e0b7167a0
commit 99d533c2aa
1 changed files with 5 additions and 0 deletions

View File

@ -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)"/>