Doxygen: automate the addition of the extensions (dark toggle, copy button) using CMake
Is it possible to automate the addition of the extensions (dark toggle, copy button) using CMake?
https://github.com/cpp-best-practices/project_options/blob/50eb09a1097c8ae90b5bc84729a33577365d5eb5/src/Doxygen.cmake
Originally posted by @aminya in https://github.com/cpp-best-practices/project_options/issues/88#issuecomment-1056851749
Afaik to inject Javascript into Doxygen you have to provide a header template like described in the install instructions of the extensions. If there would be an easier way I'd love to know about it as well!
So I think the answer is no, there is no easy way to automate the addition of the extensions with just the CMake Doxygen module. Maybe you could ship a custom header template with your CMake module, with all the extensions installed? But personally, as a user, I'd not be a fan of that bc I need control over the header template for injecting SEO-Metadata and the "github corner".
It may be worth a try to directly ask your question in doxygen/doxygen?
Originally posted by in https://github.com/cpp-best-practices/project_options/pull/88#issuecomment-1059076599