Ruby和Ruby on Rails的离线API文档 [英] Ruby and Ruby on Rails offline API documentation
问题描述
在过去,我用railsbrain.com有一个很好的和方便的离线API文档。
In the past I used railsbrain.com to have a nice and handy offline api documentation.
但他们停留在2.3.2版
But they stop at version 2.3.2
是否与最新版本的任何其他解决方案。
Is there any other solution with latest version.
推荐答案
更新(2013年5月8日):如果你是一个Mac上尝试的短跑,适用于Windows / Linux的热心是仍在开发中。
UPDATE (2013-05-08): If you are on a Mac try Dash, for Windows/Linux Zeal is still in development.
更新(2012年9月21日): railsapi.com 这是最新的了,所以作为接受回答提示给它一个去。
UPDATE (2012-09-21): railsapi.com it's up to date now, so as the accepted answer suggest give it a go.
railsapi.com它不够好适合我,因为它不是最新的(目前3.1.1),而我没有在家里上网,爱是爱第三世界国家。
railsapi.com it's not good enough for me because it's not up to date (currently 3.1.1), and I don't have internet at home, gotta love third world countries.
我用这个命令,我的服务器上,以便我能得到更快的文件(他们在缓存中,去图)。
I used this commands on my server so I could get the files faster (they were on cache, go figure).
的wget -r -k -p http://api.rubyonrails.org/
- 的R - 递归
- K - 转换链接指向本地文件
- 对 - 让所有
图像等需要显示HTML页面
然后我COM $ P $文件夹PSS这样我就可以下载它没有开销。
Then I compress the folder so I can download it without overhead.
RAR一个-r rails_api.rar api.rubyonrails.org /
- 系统 - 添加文件
- 的R - 递归
https://gist.github.com/2149669
更新:
您还可以使用院子服务器
(在我的RDoc preFER院子格式)。安装宝石创业板安装堆场
,重新生成所有的文档宝石的RDoc --all --overwrite
,并运行服务器对于宝石院子服务器--gems
。
UPDATE:
You can also use yard server
(I prefer yard format over rdoc). Install the gem gem install yard
, regenerate all the documentation gem rdoc --all --overwrite
, and run the server for the gems yard server --gems
.
这篇关于Ruby和Ruby on Rails的离线API文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!