]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
doc: Use api/html to link to Doxygen docs in Devhelp index
authorSimon McVittie <smcv@debian.org>
Tue, 29 Oct 2024 15:47:21 +0000 (15:47 +0000)
committerSimon McVittie <smcv@collabora.com>
Tue, 29 Oct 2024 17:49:44 +0000 (17:49 +0000)
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>
doc/doxygen_to_devhelp.xsl

index fd33bcee0e2dbf40c728bae72d075904dff0b506..55f48cf1f4d9c226360a2348d92d2d78b55fb4cf 100644 (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>