【发布时间】:2025-12-17 17:40:01
【问题描述】:
我正在尝试在我的 YARD 文档中创建一些链接。我可以得到一个 HTTP 链接:
# I like {http://*.com *}
呈现为
<p>I like <a href="http://*.com">*</a></p>
但是一个电子邮件链接:
# You can email the {mailto:bugs@myproject.com bugs} list
给我一个警告:
[warn]: In file `':: Cannot resolve link to mailto:bugs@myprojectmailto:bugs@myproject.com from text:
并呈现为
<p>You can email the <tt>bugs</tt> list</p>
我已经尝试过链接的常规 RDoc 语法:
bugs[mailto:bugs@myproject.com]
但 YARD 似乎忽略了这一点。有谁知道更可靠的语法吗?
【问题讨论】:
标签: ruby documentation rdoc yard