-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate Doxyfile via CMake and only fetch doc dependencies if required.
- Loading branch information
1 parent
6839b14
commit b9b8248
Showing
6 changed files
with
79 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# find Doxygen | ||
find_package(Doxygen) | ||
|
||
if (DOXYGEN_FOUND) | ||
if (DOXYGEN_VERSION VERSION_LESS "1.10.0") | ||
message( | ||
WARNING "Doxygen must be version 1.10.0 or newer. Documentation may not be displayed correctly and CI may " | ||
"not pass even if checks pass locally." | ||
) | ||
endif () | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
doxygen-awesome-css | ||
GIT_REPOSITORY https://github.com/jothepro/doxygen-awesome-css.git | ||
GIT_TAG v2.3.3 | ||
) | ||
FetchContent_MakeAvailable(doxygen-awesome-css) | ||
|
||
# required variables for setting up doxygen-awesome-css | ||
set(DOXYGEN_GENERATE_TREEVIEW YES) | ||
set(DOXYGEN_DISABLE_INDEX NO) | ||
set(DOXYGEN_FULL_SIDEBAR NO) | ||
set(DOXYGEN_HTML_EXTRA_STYLESHEET | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome.css | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome-sidebar-only.css | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome-sidebar-only-darkmode-toggle.css | ||
${CMAKE_CURRENT_LIST_DIR}/custom_doxygen/custom.css | ||
) | ||
set(DOXYGEN_HTML_EXTRA_FILES | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome-darkmode-toggle.js | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome-fragment-copy-button.js | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome-paragraph-link.js | ||
) | ||
set(DOXYGEN_HTML_HEADER ${CMAKE_CURRENT_LIST_DIR}/custom_doxygen/header.html) | ||
set(DOXYGEN_HTML_FOOTER ${CMAKE_CURRENT_LIST_DIR}/custom_doxygen/footer.html) | ||
set(DOXYGEN_HTML_COLORSTYLE LIGHT) | ||
|
||
set(DOXYGEN_PROJECT_LOGO "${CMAKE_CURRENT_LIST_DIR}/images/icon.svg") | ||
set(DOXYGEN_IMAGE_PATH "${CMAKE_CURRENT_LIST_DIR}/images") | ||
set(DOXYGEN_PREDEFINED KAMPING_DOXYGEN_ONLY) | ||
set(DOXYGEN_GENERATE_TODOLIST NO) | ||
set(DOXYGEN_EXTRACT_STATIC YES) | ||
set(DOXYGEN_CASE_SENSE_NAMES YES) | ||
set(DOXYGEN_BUILTIN_STL_SUPPORT YES) | ||
set(DOXYGEN_RECURSIVE YES) | ||
set(DOXYGEN_STRIP_CODE_COMMENTS NO) | ||
set(DOXYGEN_GENERATE_LATEX NO) | ||
set(DOXYGEN_TAB_SIZE 2) | ||
set(DOXYGEN_ENABLED_SECTIONS KAMPING_MAIN_PAGE) | ||
set(DOXYGEN_FILE_PATTERNS *.cpp *.hpp *.dox *.md) | ||
|
||
doxygen_add_docs( | ||
docs ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/../include/ | ||
COMMENT "Generating Documentation" | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/.. | ||
) | ||
else () | ||
message(STATUS "Doxygen not found, not building docs") | ||
endif () |
Submodule doxygen-awesome-css
deleted from
4bc3b3