summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2024-04-02 12:53:29 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2024-04-16 09:53:59 +0200
commitb58ca0e1472c17cd7252c4e1090140b673acea3c (patch)
treede5a9e52f56bbe69fc769d76376297319b4dedb1
parent5e41498558788a2cfb9c0cb3359aced01c268fea (diff)
cmake: Inclusion of a link in html overview file corrected
The link for api documentation is now only inserted into the html overview file when it is built.
-rw-r--r--doc/CMakeLists.txt5
-rw-r--r--doc/index.html.in2
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index fbcd84ba..cbcbf7bd 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -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)
diff --git a/doc/index.html.in b/doc/index.html.in
index feca9fc8..eb61d061 100644
--- a/doc/index.html.in
+++ b/doc/index.html.in
@@ -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>