I want to generate Ruby documentation with hanna .
How to do it? Or where can I download it, if available at all?
Using
rdoc -o ~/doc --inline-source --line-numbers --format=html --template=hanna
gives me documents with missing methods. It does not appear to generate methods written in C.
Turns out you just need to get the Ruby source code , extract it, and then run something like this in the source directory:
rdoc -o <output path> --inline-source --line-numbers --format=html --template=hanna
In your ruby source directory, run
hanna -o --inline-source -line-numbers --format = html
gem install mislav-hanna
Then just follow the steps in readme:
http://github.com/mislav/hanna/blob/8eaeb062fae276b19eb86fa302e9ee446a06eef8/README.markdown
If you use rvm, this works:
$ gem install hanna $ cd ~/.rvm/src/ruby-1.8.6-p383 $ hanna -o doc/api --inline-source --line-numbers --fmt=html $ open doc/api/index.html