This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git

commit f63b59c7453b9104167ad8bd0714cc0fe6d2bed6
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue May 3 17:40:38 2022 +0100

    Add PR support to docs
---
 xdocs/style.xsl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/xdocs/style.xsl b/xdocs/style.xsl
index cf0da53fb..f712b5207 100644
--- a/xdocs/style.xsl
+++ b/xdocs/style.xsl
@@ -37,6 +37,7 @@
   <xsl:param    name="apache-logo"      select="'/images/asf-feather.png'"/>
   <xsl:param    name="relative-path"    select="'.'"/>
   <xsl:param    name="buglink"          
select="'https://bz.apache.org/bugzilla/show_bug.cgi?id='"/>
+  <xsl:param    name="prlink"           
select="'https://github.com/apache/tomcat-native/pull/'"/>
 
   <!-- Defined variables (non-overrideable) -->
 
@@ -335,6 +336,12 @@
       <a href="{$link}"><xsl:apply-templates/></a>
   </xsl:template>
 
+  <!-- Link to a pull request -->
+  <xsl:template match="pr">
+    <xsl:variable name="link"><xsl:value-of select="$prlink"/><xsl:value-of 
select="text()"/></xsl:variable>
+    <a href="{$link}">#<xsl:apply-templates/></a>
+  </xsl:template>
+
 
 
   <xsl:template match="todo">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to