是否可以将 Google Analytics 添加到 doxygen 生成的文件中?
是否可以将 Google Analytics 添加到由 doxygen 动态生成的 HTML 文件(例如在 Doxyfile 中)它们是自动创建的时间吗?有人可以举例说明如何从 GUI 内或 Doxyfile 内完成此操作吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设需要将相同的 HTML 代码添加到每个生成的 HTML 文件中,您可以使用 Doxyfile 上的
HTML_HEADER
选项替换 Doxygen 标头:Doxygen 可以使用以下命令生成初始 header.html:
其中
、
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:Doxygen can generate an initial header.html using the following command:
Where
<header>
,<footer>
and<stylesheet>
are the filenames that should be generated for the respective components.