You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Doxygen时Markdown相对路径链接触发TK_EOF警告求助

Doxygen与Pycharm兼容的Markdown链接问题

项目目录结构

myproj/
    doc/installation.md
    tools/install/installation_ubu.md
    tools/install/installation_macos.md
    tools/install/installation_msys2.md
    Doxyfile

当前使用的Markdown链接(在doc/installation.md中)

* Ubuntu: [installation_ubu](../tools/install/installation_ubu.md)
* MacOS: [installation_macos](../tools/install/installation_macos.md)
* Windows MSYS2: [installation_msys2](../tools/install/installation_msys2.md)

Doxygen警告信息

运行Doxygen时出现如下警告(Ubuntu使用1.8.17版本、MacOS使用1.9.8版本均触发):

doc/installation.md:6: warning: unexpected token TK_EOF as the argument of ref
doc/installation.md:7: warning: unexpected token TK_EOF as the argument of ref
doc/installation.md:8: warning: unexpected token TK_EOF as the argument of ref

已尝试的调整方案

  • 移除.md后缀:无警告,但Doxygen生成的HTML链接404,且Pycharm无法识别链接
  • 将文件移至本地目录:无警告,Doxygen生成的PDF和HTML正常,但Pycharm无法识别链接
  • 保留.md后缀且不移动文件:出现警告,但Doxygen生成的PDF、HTML正常,同时Pycharm可识别链接

需求

寻求能同时兼容Doxygen(无警告、链接正常)与Pycharm(可识别链接)的解决方案。

内容的提问来源于stack exchange,提问作者JohnA

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.03 22:45:56