Skip to content

Commit

Permalink
Documentation may now reference GitHub issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Dec 8, 2011
1 parent f4ede52 commit 184557e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/doc/html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,20 @@
</xsl:if>
</a>
</xsl:when>
<xsl:when test="@issue != ''">
<a>
<xsl:attribute name="href">
<xsl:text>http://github.com/cederberg/mibble/issues/</xsl:text>
<xsl:value-of select="@issue" />
</xsl:attribute>
<xsl:text>Issue #</xsl:text>
<xsl:value-of select="@issue" />
<xsl:if test="string-length($text) &gt; 0">
<xsl:text> - </xsl:text>
<xsl:value-of select="$text" />
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
<xsl:text> [UNDEFINED REFERENCE]</xsl:text>
Expand Down
9 changes: 9 additions & 0 deletions src/doc/txt.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ notice is left intact.</xsl:text>
</xsl:if>
<xsl:text>]</xsl:text>
</xsl:when>
<xsl:when test="@issue != ''">
<xsl:text>[Issue #</xsl:text>
<xsl:value-of select="@issue" />
<xsl:if test="string-length($text) &gt; 0">
<xsl:text> - </xsl:text>
<xsl:value-of select="$text" />
</xsl:if>
<xsl:text>]</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
<xsl:text> [UNDEFINED REFERENCE]</xsl:text>
Expand Down

0 comments on commit 184557e

Please sign in to comment.