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.
This commit is contained in:
Ralf Habacker 2024-04-02 12:53:29 +02:00
parent 5e41498558
commit b58ca0e147
2 changed files with 6 additions and 1 deletions

View 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)

View 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>