-
Notifications
You must be signed in to change notification settings - Fork 5.3k
doxygen: support 1.9.8 #10777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doxygen: support 1.9.8 #10777
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: documentationReviewers: CXSforHPU GorrayLi lianux-mm unicornx Changed Files (Click to expand)
🏷️ Tag: workflowReviewers: Rbb666 kurisaW supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-10-10 11:42 CST)
📝 Review Instructions
|
c6de425 to
4b17def
Compare
The current test environment is mainly based on Ubuntu 22.04 LTS and doxygen version is 1.9.1. But when we switch to Ubuntu 24.04, the default Doxygen version on Ubuntu 24.04 is 1.9.8. The supported configuration and layout file formats differ from those in 1.9.1 (Ubuntu 22.04). In particular, the layout XML file format of 1.9.8 is incompatible with the older format(1.9.1). Therefore, to support Doxygen on Ubuntu 24.04, we need to load different configuration and layout files. (The layout file is specified using the LAYOUT_FILE parameter in the configuration file.) Solution: Provide corresponding configuration and layout files for different Doxygen versions, distinguished by the Doxygen version number. Currently, only Doxygen versions 1.9.1 and above are supported. If the doxygen version is >= 1.9.1 but < 1.9.8, the 1.9.1 configuration and layout are used by default. If the doxygen version is >= 1.9.8, the 1.9.8 configuration and layout are used. Only 1.9.1 and 1.9.8 have been tested, as these are the default doxygen versions on Ubuntu 22.04 LTS and Ubuntu 24.04. Other versions have not been tested yet. If necessary, we will change the configuration based on the same approach in the future. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
4b17def to
8a86b28
Compare
|
rt-thread/.github/workflows/doxygen.yml Line 46 in 5ae232b
这个ubuntu版本可以修改为24.08 如果需要1.9.8的话。 |
目前测试环境主要基于 Ubuntu 22.04LTS(doxygen 版本是 1.9.1)。但 Ubuntu 24.04 上默认的 doxygen 版本是 1.9.8,其支持的 configgure 文件和 layout文件格式和 1.9.1(ubuntu 22.04)不同,特别是 1.9.8 的 layout XML 文件的格式并不兼容旧的 1.9.1 的格式,所以如果要支持在 Ubuntu 24.04 上运行 doxygen,需要加载不同的 config 文件和 layout 文件。(layout 文件通过在 config 文件中的 LAYOUT_FILE 参数指定。)
解决方案:针对不同版本的 doxygen 提供对应的 config & layout 文件,通过 doxygen 的版本号区分。
目前只支持 1.9.1 以上的 doxygen。
如果 doxygen 的版本号 >= 1.9.1 但 < 1.9.8, 默认使用 1.9.1 的 config & layout;如果 doxygen 的版本号 >= 1.9.8 则使用 1.9.8 的 config & layout。
只测试了 1.9.1 和 1.9.8,因为这是 ubuntu 22.04 LTS 和 ubuntu 24.04 上 doxygen 的默认版本,其他版本暂未测试,如果需要以后再基于相同思路更改。