简体   繁体   English

如何从 xcode 文档中的另一个模块/包链接到文档?

[英]How to link to documentation from another module/package in xcode docc?

I am trying to create articles in my docc in xcode.我正在尝试在 xcode 的文档中创建文章。 My project have multiple modules.我的项目有多个模块。

For link to article within one module i have doc: markup.对于一个模块中的文章链接,我有文档:标记。 But i don`t understand, how link to article from another module.但我不明白,如何从另一个模块链接到文章。

I am tryed use:我尝试使用:

 <doc:../../AnotherModule/AnotherModule.docc/Article>
 <doc:../../AnotherModule/AnotherModule.docc/Article.md>
 <doc:../../AnotherModule/AnotherModule/Article>
 <doc:../../AnotherModule/AnotherModule/Article.md>
 <doc:../../AnotherModule/Article>
 <doc:../../AnotherModule/Article.md>

But all these things does not work.但所有这些都不起作用。

I was looking for the same solution.我一直在寻找相同的解决方案。 But after more research it looks currently it's not possible to link documentation from another framework, module, package...但经过更多研究,目前看来无法从另一个框架、模块 package 链接文档......

I see in DocC public repo there's an Open Issue: Support DocC references to symbols defined in another module which makes me think it's currently not possible to have reference outside of your current module, but also makes me hope this feature will be implemented in the "near" future.我在 DocC 公共回购中看到有一个未解决的问题:支持 DocC 引用另一个模块中定义的符号,这让我认为目前不可能在当前模块之外进行引用,但也让我希望这个功能将在“不远的将来。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM