aboutsummaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-29 09:44:45 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-29 11:05:47 +0200
commit5334cb9d55a69243a45ee6f2e9dc3885ac9325a1 (patch)
tree7aa051f5981cf5c1570e6b51e46a940a70bcf894 /doc/CMakeLists.txt
parent9a73fa885a68025141dbbe57abfbab7505faa9e9 (diff)
downloadlibssh-5334cb9d55a69243a45ee6f2e9dc3885ac9325a1.tar.gz
libssh-5334cb9d55a69243a45ee6f2e9dc3885ac9325a1.tar.xz
libssh-5334cb9d55a69243a45ee6f2e9dc3885ac9325a1.zip
doc: Update doxygen documentation
This fixes some issues with the new docs and uses a new modern style. https://github.com/jl-wynen/that_style Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 7bcc0d67..3e424152 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -4,7 +4,39 @@
find_package(Doxygen)
if (DOXYGEN_FOUND)
+ set(DOXYGEN_PROJECT_NAME ${PROJECT_NAME})
+ set(DOXYGEN_PROJECT_NUMBER ${PROJECT_VERSION})
+ set(DOXYGEN_PROJECT_BRIEF "The SSH library")
+
+ set(DOXYGEN_TAB_SIZE 4)
+ set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C YES)
+ set(DOXYGEN_MARKDOWN_SUPPORT YES)
+
+ set(DOXYGEN_PREDEFINED DOXYGEN
+ PRINTF_ATTRIBUTE(x,y)=)
+
+ set(DOXYGEN_EXCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/that_style)
+ set(DOXYGEN_HTML_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/that_style/header.html)
+ set(DOXYGEN_HTML_EXTRA_STYLESHEET ${CMAKE_CURRENT_SOURCE_DIR}/that_style/that_style.css)
+ set(DOXYGEN_HTML_EXTRA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/nav_edge_left.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/nav_edge_right.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/nav_edge_inter.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/sync_off.png
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/sync_on.png
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/splitbar_handle.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/doc.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/mag_glass.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/folderclosed.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/img/folderopen.svg
+ ${CMAKE_CURRENT_SOURCE_DIR}/that_style/js/striped_bg.js)
+
+ # This updates the Doxyfile if we do changes here
+ set(_doxyfile_template "${CMAKE_BINARY_DIR}/CMakeDoxyfile.in")
+ set(_target_doxyfile "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.docs")
+ configure_file("${_doxyfile_template}" "${_target_doxyfile}")
+
doxygen_add_docs(docs
+ ${CMAKE_SOURCE_DIR}/include/libssh
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR})
endif()