Skip to content

Commit

Permalink
Added support for github-issue element in XML documentation.
Browse files Browse the repository at this point in the history
re #692
  • Loading branch information
hijarian committed Oct 18, 2013
1 parent e888d3b commit 51f6b1a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/userdoc/userdoc.php.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<xsl:variable name="widgetname" select="documentation/@for" />
<xsl:variable name="widgetcode" select="ctboost:makeWidgetCode($widgetname)" />


<xsl:template match="/">
<xsl:processing-instruction name="php">
<xsl:text>
Expand Down Expand Up @@ -107,6 +108,7 @@ $this->menu = array(</xsl:text>
</xsl:attribute>
<xsl:value-of select="ctboost:ucfirst(@label)" />
</span>
<xsl:text> </xsl:text>
<xsl:apply-templates />
</p>
</xsl:template>
Expand Down Expand Up @@ -179,4 +181,16 @@ $this->menu = array(</xsl:text>
<xsl:value-of select="." />
</em>
</xsl:template>

<xsl:template match="github-issue">
<a>
<xsl:attribute name="href">
<xsl:text>https://github.com/clevertech/YiiBooster/issues/</xsl:text>
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:text>issue #</xsl:text>
<xsl:value-of select="@id" />
<xsl:text> at GitHub</xsl:text>
</a>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 51f6b1a

Please sign in to comment.