]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Inclusion of a link in html overview file corrected
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 2 Apr 2024 10:53:29 +0000 (12:53 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 16 Apr 2024 07:53:59 +0000 (09:53 +0200)
The link for api documentation is now only inserted into the html
overview file when it is built.

doc/CMakeLists.txt
doc/index.html.in

index fbcd84ba35ba8ba3062df1aeb09079a11cca59d9..cbcbf7bdc1f2203d11d2023b55c19330eef03368 100644 (file)
@@ -197,6 +197,11 @@ add_docbook(dbus-tutorial SOURCE dbus-tutorial.xml FORMATS html)
 #
 # handle html index file
 #
+if(DBUS_ENABLE_DOXYGEN_DOCS)
+    set(DBUS_APIDOC_LINK "<a href=\"api/html/index.html\">libdbus API Documentation</a>")
+else()
+    set(DBUS_APIDOC_LINK "")
+endif()
 configure_file(index.html.in ${CMAKE_CURRENT_BINARY_DIR}/index.html)
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/index.html DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus)
 
index feca9fc8dd801bd83312ec12c860468d74379abc..eb61d061a74771d7b06a9ffcaf4d08e8f72cea33 100644 (file)
@@ -36,7 +36,7 @@ application manuals
 <a href="dbus-test-plan.html">D-Bus Test Plan</a>
    <br>
    <br>
-<a href="api/index.html">libdbus API Documentation</a>
+@DBUS_APIDOC_LINK@
   </td>
   <td  valign=top>
 <a href="dbus-daemon.1.html">D-Bus Daemon manual</a>