更改yardocserialized_path
现在 Yardoc 将生成如下文档: doc/ModuleName.html、doc/ModuleName/ClassName.html 和 doc/ModuleName/ClassName/method_name.html 我想知道如何调整 serialized_path
(无需猴子修补)一切)执行类似以下操作: doc/ModuleName/index.html doc/ModuleName/ClassName/index.html 和doc/模块名/类名/方法名/index.html
Right now Yardoc will generate docs like: doc/ModuleName.html, doc/ModuleName/ClassName.html and doc/ModuleName/ClassName/method_name.html I was wondering how I can adjust serialized_path
(without monkey patching everything) to do something like: doc/ModuleName/index.html doc/ModuleName/ClassName/index.html and doc/ModuleName/ClassName/method_name/index.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你需要猴子补丁(据我所知,经过两天的搜索,我没有找到其他方法)所以......创建一个名为yardoc_pretty-uris.rb的文件,当你运行yardoc do
-e yardo_pretty-print.rb
。yardoc_pretty-uris.rb 内容:
You'll need to monkey patch (from what I've noticed, after 2 days of searching I found no other way) So...Create a file named yardoc_pretty-uris.rb and when you run yardoc do
-e yardo_pretty-print.rb
.yardoc_pretty-uris.rb contents: