4

I want to generate the Ruby documentation with hanna template.

How to do that? Or where can I download it if it's available at all?

Using

rdoc -o ~/doc --inline-source --line-numbers --format=html --template=hanna

gives me docs with missing methods. It seems like it doesn't generate methods written in C.

Jonathan Julian
  • 12,163
  • 2
  • 42
  • 48
htanata
  • 36,666
  • 8
  • 50
  • 57

4 Answers4

1

In your ruby source directory, run

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

stainless
  • 11
  • 1
  • This worked for me. Specifically, `cd ruby-1.8.7-p248 ; hanna -o hannadoc --inline-source --line-numbers --fmt=html ; open hannadoc/index.html`. – Jonathan Julian Apr 21 '10 at 16:08
0

If you are using 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
pjb3
  • 5,191
  • 5
  • 25
  • 44
0

gem install mislav-hanna

Then just follow the steps in the readme:

http://github.com/mislav/hanna/blob/8eaeb062fae276b19eb86fa302e9ee446a06eef8/README.markdown

MatthewFord
  • 2,918
  • 2
  • 21
  • 32
-1

Turns out you just need to get the Ruby source code, extract it, and then in the source directory, run something like this:

rdoc -o <output path> --inline-source --line-numbers --format=html --template=hanna
htanata
  • 36,666
  • 8
  • 50
  • 57