mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 09:57:26 +03:00
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:
parent
3e0b7167a0
commit
99d533c2aa
@ -131,6 +131,11 @@
|
|||||||
<xsl:value-of select="$token"/>
|
<xsl:value-of select="$token"/>
|
||||||
</a>
|
</a>
|
||||||
</xsl:when>
|
</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:when test="starts-with($token, '<http://') and contains($token, '>')">
|
||||||
<xsl:variable name="link"
|
<xsl:variable name="link"
|
||||||
select="substring(substring-before($token, '>'), 2)"/>
|
select="substring(substring-before($token, '>'), 2)"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user