mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 04:34:12 +01:00
Linkify option types.
This commit is contained in:
@@ -511,10 +511,17 @@
|
||||
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
<xsl:template match="dactyl:str | dactyl:type" mode="help-2">
|
||||
<span>
|
||||
<xsl:if test="self::dactyl:str"><xsl:attribute name="dactyl:highlight">HelpString</xsl:attribute></xsl:if>
|
||||
<xsl:if test="self::dactyl:type"><xsl:attribute name="dactyl:highlight">HelpType</xsl:attribute></xsl:if>
|
||||
<xsl:template match="dactyl:type" mode="help-2">
|
||||
<a dactyl:highlight="HelpType">
|
||||
<xsl:if test="not(. = 'boolean' or . = 'number' or . = 'string')">
|
||||
<!-- test="contains(ancestor::*/@document-tags, concat(' ', ., ' '))" -->
|
||||
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
||||
</a>
|
||||
</xsl:template>
|
||||
<xsl:template match="dactyl:str" mode="help-2">
|
||||
<span dactyl:highlight="HelpString">
|
||||
<xsl:apply-templates select="@*|node()" mode="help-1"/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
@@ -749,7 +749,7 @@ var ConfigBase = Class("ConfigBase", {
|
||||
HelpTag;;;FontCode display: inline-block; color: #527BBD; margin-left: 1ex; font-weight: normal;
|
||||
HelpTags display: block; float: right; clear: right;
|
||||
HelpTopic;;;FontCode color: #102663;
|
||||
HelpType;;;FontCode margin-right: 2ex;
|
||||
HelpType;;;FontCode color: #102663 !important; margin-right: 2ex;
|
||||
|
||||
HelpWarning color: red; font-weight: bold;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user