是否可以将 Google Analytics 添加到 doxygen 生成的文件中?

发布于 2024-12-23 13:40:02 字数 183 浏览 3 评论 0原文

是否可以将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨曦÷微暖 2024-12-30 13:40:02

假设需要将相同的 HTML 代码添加到每个生成的 HTML 文件中,您可以使用 Doxyfile 上的 HTML_HEADER 选项替换 Doxygen 标头:

HTML_HEADER= = header.html

Doxygen 可以使用以下命令生成初始 header.html:

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

其中

是应为各自的组件。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文