API文档生成工具

发布于 2024-10-08 07:17:46 字数 1539 浏览 0 评论 0原文

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

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

发布评论

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

评论(2

咿呀咿呀哟 2024-10-15 07:17:46

rake doc:app 会将方法的 rdoc 格式注释转换为格式正确的 html

rake doc:app will turn your rdoc formatted comments for your methods into properly formatted html

∞觅青森が 2024-10-15 07:17:46

idlefingers 说得对,但这里是新手的完整答案:

  1. 在 Gemfile 中包含 rdoc: gem "rdoc"
  2. 运行 $ rake doc:app 生成文档
  3. 通过打开您的 Gemfile 中的 doc/app/index.html 文件来访问 rdoc浏览器

idlefingers has it right, but here is the complete answer for newbies:

  1. Include rdoc in your Gemfile: gem "rdoc"
  2. Run $ rake doc:app to generate the documentation
  3. Access the rdoc by opening the doc/app/index.html file in your browser
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文