码以及文档中类/模块的链接
我目前正在从 rdoc 切换到yard 来保存我的 ruby 软件文档。
在我的文档中,我经常从注释中引用一些类/模块,例如:
## == Provides various utility features
##
## == Features
##
## Logging : logging is provided by the Mysoft::Mypackage::Utility::Logger class
##
Rdoc 正确创建了指向 Mysoft::Mypackage::Utility::Logger 类文档页面的链接,而yard忽略标签并认为类名很简单细绳。
我知道yard有@see标签,但是这将在文档中创建一个单独的“另请参阅”部分,而我需要在描述文本中引用类/模块。
我肯定错过了一些东西,但是如果您有任何关于如何使用yard 完成此操作的示例,我将非常感激。
感谢您的建议,
dl
I'm currently switching from rdoc to yard for my ruby software documentaion.
In my doc I often reference some classes/modules from the comments, for instance :
## == Provides various utility features
##
## == Features
##
## Logging : logging is provided by the Mysoft::Mypackage::Utility::Logger class
##
Rdoc correctly creates a link to the Mysoft::Mypackage::Utility::Logger class documentation page, while yard ignores the tag and considers the class name as simple string.
I know that yard has the @see tag, however this will create a separate "See Also" section in the documentation, while I need to reference the class/modules with inside my description text.
I'm surely missing something, but if you have any examples on how this should be done with yard, I'd realy appreciate.
Thanks per advace,
dl
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
引用文档:
所以,你想要
Quoth the documentation:
So, you want