mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-28 15:30:09 +01:00
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:
parent
5e41498558
commit
b58ca0e147
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue