mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 16:25:45 +01:00
Linkify option types.
This commit is contained in:
@@ -513,10 +513,14 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="dactyl:type" mode="help-2">
|
<xsl:template match="dactyl:type" mode="help-2">
|
||||||
<a dactyl:highlight="HelpType">
|
<a dactyl:highlight="HelpType">
|
||||||
<xsl:if test="not(. = 'boolean' or . = 'number' or . = 'string')">
|
<xsl:choose>
|
||||||
<!-- test="contains(ancestor::*/@document-tags, concat(' ', ., ' '))" -->
|
<xsl:when test="contains(ancestor::*/@document-tags, concat(' ', ., ' '))">
|
||||||
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
|
<xsl:attribute name="href">#<xsl:value-of select="."/></xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:when>
|
||||||
|
<xsl:when test="not(. = 'boolean' or . = 'number' or . = 'string')">
|
||||||
|
<xsl:attribute name="href">dactyl://help-tag/<xsl:value-of select="."/></xsl:attribute>
|
||||||
|
</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
||||||
</a>
|
</a>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|||||||
Reference in New Issue
Block a user