且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

链接到外部主页

更新时间:2023-10-22 23:39:22

有这是一个技巧。假设您有项目A和B,那么在项目A的主页中,您可以像这样放置 @anchor 命令:

There is a trick to do this. Say you have projects A and B, then in the main page of project A you could put an @anchor command like so:

/** @mainpage
 *  @anchor project_a
 */

然后您可以在项目b的文档中使用

And in the documentation of project b you can then simply use

 [OtherDoc](\ref project_a)

请注意,锚点必须是全局唯一的,因此您需要谨慎选择他们!

Note that anchors have to be globally unique, so you need to carefully choose them!