How to create Ruby documentation using a different template?

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.

+4
source share
4 answers

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 
-1
source

In your ruby ​​source directory, run

hanna -o --inline-source -line-numbers --format = html

+1
source
0
source

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 
0
source

All Articles