Velron / doxygen-bootstrapped

Customize doxygen output to use the twitter bootstrap framework.
Apache License 2.0
401 stars 72 forks source link

Incompatible code attribute #5

Closed Laura-K closed 8 years ago

Laura-K commented 8 years ago

Hi,

I can't describe my classes when the doxygen attributes /class and /code are together It brokes the css. Here an example: http://doc.ageproject.fr/class_engine.html

Best, Laura

Velron commented 8 years ago

It looks like your dynsections.js file has a bug in it, when I open the console I see the following:

Line 102: Uncaught TypeError: $(...).powerTip is not a function

This is most likely preventing the rest of the JS from running, and if doxy-boot.js doesn't run then it wont swap out the doxygen css classes with bootstrap ones.

Let me know if that's not the problem.

kiosyf commented 8 years ago

Hello, I have a similar issue whith an empty C++ project. In my doxygen main page if I replace this attribute: \code{.unparsed} by \code{.cpp} all the css seems lost. I have the same powerTip is not a function error in Firefox console, even if i have no js files with this name. The file dynsections.js seems to be a Doxygen's file. If I let the code unparsen, there is no errors.

I don't really know html nor js, so i can't really fix it myself. Do you think it can be easily fixed ? It would be great !

benacler commented 6 years ago

After a successful build, grab the dynsections.js files and copy it where you have all your doxygen templates and stuff. Change the last line in the following way:

if ($(this).powerTip) $(this).powerTip({ placement: 's', smartPlacement: true, mouseOnToPopup: true });

Add the file to the HTML_EXTRA_FILE in your project settings, in that way, the patched version will overwrite the faulty one each time you build. Be sure to repeat the operation if you change the Doxygen version because the files may be incompatible.