Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add Google Analytics to doxygen generated files?

Is it possible to add Google Analytics to the HTML files generated by doxygen dynamically (e.g. in the Doxyfile) at the time they are auto-created? Can someone give an example of how this could be done from within the GUI or from within the Doxyfile?

like image 989
Matthew Avatar asked Dec 30 '11 23:12

Matthew


People also ask

How do I add a note in Doxygen?

Notes: As pointed out in the Doxygen documentation for the ALIAS tag, you can put \n's in the value part of an alias to insert newlines. Ok, although the build people are going to complain that I'm wasting my time and their with minutiae rather than doing actual work...

When should I take Doxygen?

Doxygen (/ˈdɒksidʒən/ DOK-see-jən) is a documentation generator and static analysis tool for software source trees. When used as a documentation generator, Doxygen extracts information from specially-formatted comments within the code.


1 Answers

Assuming the same HTML code needs to be added to each of the generated HTML files, you could replace Doxygen header using the HTML_HEADER option on the Doxyfile:

HTML_HEADER= = header.html

Doxygen can generate an initial header.html using the following command:

doxygen -w html <header> <footer> <stylesheet>

Where <header>, <footer> and <stylesheet> are the filenames that should be generated for the respective components.

like image 81
DRH Avatar answered Nov 15 '22 06:11

DRH