开发者

Accessing rdoc files from one place

开发者 https://www.devze.com 2023-01-16 23:03 出处:网络
In Ruby, if you run the command gem server it will present you with a web page of documentation for all the gems you have installed on your machine. Can something similar be done for your local docume

In Ruby, if you run the command gem server it will present you with a web page of documentation for all the gems you have installed on your machine. Can something similar be done for your local documentation, so that all of your local rdoc docu开发者_JAVA技巧mentation is in one easy to access place? Any advice would be much appreciated, thanks.


Though this question is a bit old, here's what I would do:

  • Create gems out of your projects. You don't have to publish them just keep the gemspec on your local
  • Generate your local documentation from the root of your projects. This should give you two separate docs folders (if you have two projects)
  • Use gem server --dir=/path/to/project/one --dir=/path/to/project/two

OR

  • You can generate the documentation for each project using rdoc in their root folder
  • Then open each doc/index.html as a separate tab in your browser ;)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号