Is there a way to embed <script> content into a Doxygen \mainpage section?
问题 I would like to introduce some javascript <script>xxx</script> content into my generated index.html in order to add reddit and facebook "like" buttons to my project's main page. Is there a way to accomplish this automatically using Doxygen? Thanks, SetJmp 回答1: You can use @mainpage in combination with an @htmlonly...@endhtmlonly block. Here is an example: /** @mainpage My Script Page Here is an embedded script: @htmlonly <script type="text/javascript"> function displayDate() { document