Skip to content

Doxygen: automate the addition of the extensions (dark toggle, copy button) using CMake #100

@aminya

Description

@aminya

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 #88 (comment)


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 #88 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions