It is possible to use the theme without having to clone it as a submodule by using FetchContent in CMake.
In my CMake file, I have
include(FetchContent)
fetchcontent_declare(
doxygen-awesome-css
URL https://github.com/jothepro/doxygen-awesome-css/archive/refs/heads/main.zip
)
fetchcontent_makeavailable(doxygen-awesome-css)
# Save the location the files were cloned into
fetchcontent_getproperties(doxygen-awesome-css SOURCE_DIR AWESOME_CSS_DIR)
# set input and output files
set(DOXYFILE_IN ${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in)
set(DOXYFILE_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
This downloads the latest main (but any other revision could be used) and unpacks in the build folder. The Doxyfile.in can reference this location in the HTML_EXTRA_STYLESHEET field
It is possible to use the theme without having to clone it as a submodule by using
FetchContent
in CMake.In my CMake file, I have
This downloads the latest main (but any other revision could be used) and unpacks in the build folder. The
Doxyfile.in
can reference this location in theHTML_EXTRA_STYLESHEET
fieldWhen the configure stage of CMake is run, the
Doxyfile.in
is rendered toDoxyfile
and Doxygen can be run as usual.If this makes sense, I can submit a PR to add this to the installation instructions.