doc: Use api/html to link to Doxygen docs in Devhelp index

Now that we're installing the Doxygen documentation in a subdirectory,
the Devhelp index needs to reflect that.

Fixes: 522633b4 "cmake: install api docs in html subdir"
Fixes: f546ddd9 "meson: Install Doxygen docs as api/html/*.html"
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2024-10-29 15:47:21 +00:00 committed by Simon McVittie
parent dc89ac01a9
commit 397f9789e6

View file

@ -10,7 +10,7 @@
<xsl:template match="/">
<book title="D-Bus: A system for interprocess communication"
name="dbus"
link="{$prefix}/api/index.html"
link="{$prefix}/api/html/index.html"
xmlns="http://www.devhelp.net/book"
version="2"
online="https://dbus.freedesktop.org/doc/"
@ -21,7 +21,7 @@
<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"/>
<sub name="API Reference" link="{$prefix}api/html/index.html"/>
</chapters>
<functions>
@ -38,7 +38,7 @@
<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')">
<keyword xmlns="http://www.devhelp.net/book" type="function" name="{$name}" link="{$prefix}api/{$link}"/>
<keyword xmlns="http://www.devhelp.net/book" type="function" name="{$name}" link="{$prefix}api/html/{$link}"/>
</xsl:if>
</xsl:if>
</xsl:template>