From eacddbffd995d608862d84f12199756aa64cabd5 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Mon, 8 May 2023 17:49:57 +0200 Subject: [PATCH] doc: Generate hyperlinks to manuals of utilities Instead of hardcoding hyperlinks to the man pages of Libiio utils, generate them based on the config. Signed-off-by: Paul Cercueil --- CMakeLists.txt | 4 ++++ doc/index.html.in | 16 +--------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1baa7c3d2..d09020dbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -536,6 +536,10 @@ if(WITH_DOC) DESTINATION ${CMAKE_HTML_DEST_DIR}/${CMAKE_API_DEST_DIR} FILES_MATCHING PATTERN "*.svg") file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/doc/html/ DESTINATION ${CMAKE_HTML_DEST_DIR}) + set(IIO_TESTS_MAN_PAGES_HTML "") + foreach(_page ${IIO_TESTS_TARGETS}) + set(IIO_TESTS_MAN_PAGES_HTML "${IIO_TESTS_MAN_PAGES_HTML}
  • ${_page}
  • ") + endforeach() configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/doc/index.html.in ${CMAKE_HTML_DEST_DIR}/index.html @ONLY) diff --git a/doc/index.html.in b/doc/index.html.in index 5baefbb2b..eb0358861 100644 --- a/doc/index.html.in +++ b/doc/index.html.in @@ -130,21 +130,7 @@
  • libiio
  • -
  • - iio_attr -
  • -
  • - iio_info -
  • -
  • - iio_readdev -
  • -
  • - iio_reg -
  • -
  • - iio_writedev -
  • + @IIO_TESTS_MAN_PAGES_HTML@