Skip to content

Commit

Permalink
doxygen generates properly
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnavaghosh04 committed Sep 13, 2024
1 parent 6ddecd1 commit bb0040f
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1,953 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ add_custom_target(uninstall
########################################################################
add_subdirectory(include/gnuradio/UTAT_HERON)
add_subdirectory(lib)
add_subdirectory(apps)
add_subdirectory(docs)
add_subdirectory(apps)
# NOTE: manually update below to use GRC to generate C++ flowgraphs w/o python
if(ENABLE_PYTHON)
message(STATUS "PYTHON and GRC components are enabled")
Expand Down
15 changes: 15 additions & 0 deletions docs/doxygen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#

include(FetchContent)
FetchContent_Declare(doxygen-awesome-css
GIT_REPOSITORY "https://github.com/jothepro/doxygen-awesome-css.git"
GIT_TAG "v2.3.3"
SOURCE_DIR "doxygen-awesome-css"
)

########################################################################
# Create the doxygen configuration file
########################################################################
Expand Down Expand Up @@ -40,3 +47,11 @@ add_custom_command(
add_custom_target(doxygen_target ALL DEPENDS ${BUILT_DIRS})

install(DIRECTORY ${BUILT_DIRS} DESTINATION ${GR_PKG_DOC_DIR})

FetchContent_MakeAvailable(doxygen-awesome-css)
file(READ "${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css/doxygen-custom/header.html" FILE_CONTENTS)
string(REPLACE
"https://github.com/jothepro/doxygen-awesome-css"
"${PROJECT_HOMEPAGE_URL}"
FILE_CONTENTS "${FILE_CONTENTS}")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/doxygen-awesome-css/doxygen-custom/header.html" "${FILE_CONTENTS}")
Loading

0 comments on commit bb0040f

Please sign in to comment.