YARD 和 RDoc 兼容性

发布于 2025-01-08 07:12:19 字数 117 浏览 3 评论 0原文

如果我用 YARD 记录我的代码,并使用例如 @overload 标签,而其他人安装我的 gem 并使用 RDoc 生成文档,结果会不会很混乱?

有没有好的办法来处理这个问题呢?

If I document my code with YARD, and use e.g. the @overload tag, and someone else installs my gem and it generates the documentation with RDoc, won't the result be messy?

Is there a good way to deal with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难以启齿的温柔 2025-01-15 07:12:19

它不支持 @overload,但 TomDoc 可以作为一个可行的中间人。 RDoc 现在支持开箱即用的 TomDoc,并且 Yard 具有yard-tomdoc 插件。对于大型项目,YARD 仍然更好(IMO),但对于小型库或工具,TomDoc 效果很好并且可以被两个系统使用。

Is doesn't support @overload, but TomDoc serves as a workable go between. RDoc now supports TomDoc out of the box, and Yard has yard-tomdoc plugin. YARD is still better (IMO) for large projects, but for small libraries or tools TomDoc works well and can be used by both systems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文