From b58ca0e1472c17cd7252c4e1090140b673acea3c Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 2 Apr 2024 12:53:29 +0200 Subject: [PATCH] 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. --- doc/CMakeLists.txt | 5 +++++ doc/index.html.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index fbcd84ba3..cbcbf7bdc 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 "libdbus API Documentation") +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 feca9fc8d..eb61d061a 100644 --- a/doc/index.html.in +++ b/doc/index.html.in @@ -36,7 +36,7 @@ application manuals D-Bus Test Plan

-libdbus API Documentation +@DBUS_APIDOC_LINK@ D-Bus Daemon manual -- 2.47.3