mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 15:08:01 +02:00
Add doxygen_to_devhelp.xsl (from Fedora, via Debian)
Originally committed by Matthias Clasen <mclasen@fedoraproject.org>. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=13495 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=454142
This commit is contained in:
parent
48086ac56d
commit
1edc077257
2 changed files with 41 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ STATIC_DOCS = \
|
|||
|
||||
EXTRA_DIST = \
|
||||
file-boilerplate.c \
|
||||
doxygen_to_devhelp.xsl \
|
||||
$(STATIC_DOCS) \
|
||||
$(MAN_IN_FILES) $(man_MANS)
|
||||
|
||||
|
|
|
|||
40
doc/doxygen_to_devhelp.xsl
Normal file
40
doc/doxygen_to_devhelp.xsl
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes"/>
|
||||
|
||||
<xsl:param name="prefix"></xsl:param>
|
||||
|
||||
<xsl:template match="/">
|
||||
<book title="D-Bus: A system for interprocess communication"
|
||||
name="dbus"
|
||||
link="dbus-tutorial.html">
|
||||
<chapters>
|
||||
<sub name="Tutorial" link="{$prefix}dbus-tutorial.html"/>
|
||||
<sub name="FAQ" link="{$prefix}dbus-faq.html"/>
|
||||
<sub name="Specification" link="{$prefix}dbus-specification.html"/>
|
||||
<sub name="API Reference" link="{$prefix}api/index.html"/>
|
||||
</chapters>
|
||||
|
||||
<functions>
|
||||
<xsl:apply-templates select="doxygenindex/compound[@kind='group']/member[@kind='function']"/>
|
||||
</functions>
|
||||
</book>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="member">
|
||||
<xsl:param name="name"><xsl:value-of select="name"/></xsl:param>
|
||||
<xsl:param name="refid"><xsl:value-of select="@refid"/></xsl:param>
|
||||
<xsl:param name="before"><xsl:value-of select="substring-before($refid,'_1')"/></xsl:param>
|
||||
<xsl:param name="after"><xsl:value-of select="substring-after($refid,'_1')"/></xsl:param>
|
||||
<xsl:param name="link"><xsl:value-of select="$before"/>.html#<xsl:value-of select="$after"/></xsl:param>
|
||||
<xsl:if test="starts-with($name,'dbus') or starts-with($name, 'DBus')">
|
||||
<xsl:if test="starts-with($refid,'group__') and contains($refid, '_1')">
|
||||
<function name="{$name}" link="{$prefix}api/{$link}"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Add table
Reference in a new issue