aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-09-06 19:48:12 +0200
committerUlrich Müller <ulm@gentoo.org>2021-09-08 19:52:29 +0200
commita4c4652162c2a37a4809c2e9a7b825e765578378 (patch)
tree50eb6b6165132b6d39b328ec7379c58fc2e3138c /devbook.xsl
parentappendices/contributors: Typo (diff)
downloaddevmanual-a4c4652162c2a37a4809c2e9a7b825e765578378.tar.gz
devmanual-a4c4652162c2a37a4809c2e9a7b825e765578378.tar.bz2
devmanual-a4c4652162c2a37a4809c2e9a7b825e765578378.zip
Automatically generate the author list on the homepage
Contributors are listed in appendices/contributors/, so we can take the information from there without maintaining duplicate lists. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r--devbook.xsl12
1 files changed, 11 insertions, 1 deletions
diff --git a/devbook.xsl b/devbook.xsl
index ac6ab38..5e8b260 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -877,9 +877,19 @@
<dd><xsl:apply-templates/></dd>
</xsl:template>
+<xsl:template match="authorlist">
+ <dt><xsl:value-of select="@title"/></dt>
+ <dd>
+ <xsl:for-each select="document(concat(@href, 'text.xml'))//author">
+ <xsl:value-of select="@name"/>
+ <xsl:if test="position() != last()">, </xsl:if>
+ </xsl:for-each>
+ </dd>
+</xsl:template>
+
<xsl:template match="authors">
<dl>
- <xsl:apply-templates select="author"/>
+ <xsl:apply-templates/>
</dl>
</xsl:template>