jothepro / doxygen-awesome-css

Custom CSS theme for doxygen html-documentation with lots of customization parameters.
https://jothepro.github.io/doxygen-awesome-css/
MIT License
956 stars 108 forks source link

Fragment Copy Button conflicts with Doxygen copy button #142

Closed CaseyNelson314 closed 1 month ago

CaseyNelson314 commented 1 month ago

Hi, thanks for the great project!

I found a small problem and would like to report it.

Problem

Using the extension "Fragment Copy Button" conflicts with Doxygen copy button as shown in the screenshot.

screenshot

You can see the conflict from this page. https://github.com/CaseyNelson314/doxygen-page-demo

The version I am using is Doxygen 1.10.0.

Solution

Set HTML_COPY_CLIPBOARD to NO in Doxyfile. The default is YES.

This option was added in 1.10.0. https://www.doxygen.nl/manual/changelog.html#log_1_10_0

Suggestions

I think we should add a note to extensions.md that HTML_COPY_CLIPBOARD should be NO when using Fragment Copy Button.

Other

This project page is also using Doxygen 1.10.0, yet I am not experiencing any problems. This is probably because the project uses the old Doxygen-generated header.html, which does not contain any clipboard-related code.

In Doxygen 1.10.0, the following code is added when generating header.html

<script type="text/javascript" src="$relpath^clipboard.js"></script>

This is a translated text. Some parts may be difficult to understand. We apologize in advance.