Rails app -> CHM file?

Hey All,

I’ve got an app that stores infrequently-changing-but-not-entirely-
static data. I’d like to be able to generate a snapshot of the app
(or a portion thereof) in a CHM file so users can snag a copy for
offline use, that still has the hyperlink structure intact, can be
searched, printed, etc. Optimal would be something I could feed a
route to & it would spider every link from there, using my existing
views.

My googling has not turned up any existing gems/plugins that just
magically do what I want, alas, but I wondered if anybody here can
point me at a likely place to start on such a feature? I know there’s
an rdoc plugin or branch that generates CHM from rdoc–that’ll be
where I start unless someone has a better suggestion.

Many thanks!

-Roy

On 15 Jul 2010, at 17:53, Roy P. wrote:

point me at a likely place to start on such a feature? I know there’s
an rdoc plugin or branch that generates CHM from rdoc–that’ll be
where I start unless someone has a better suggestion.

If you are on OS X, you can use the rdoc_osx_dictionary (more info
here: http://github.com/seattlerb/rdoc_osx_dictionary). I believe
there’s a dependency on hoe that isn’t installed with the gem
(although it should be, but it isn’t), so if you are having problems,
make sure you have hoe installed too.

A google search for “rails chm” brought up these:

http://moiristo.wordpress.com/2008/08/28/ruby-core-ruby-on-rails-chm-documentation/
http://dirk.net/2007/12/30/generate-ruby-on-rails-chm-documentation/
etc.

Maybe you’ll have luck with those links.

Best regards

Peter De Berdt

On 15 Jul 2010, at 19:25, Roy P. wrote:

Thanks Peter. I’m looking for cross-platform output, so I don’t think
the apple dictionary format will serve. I think those links tap into
the rdoc stuff, but I’ll give them a read & see.

Misread your original post a bit. You’ll probably have to look into
CHM generation from rdoc and then roll your own as you already
suggested.

Best regards

Peter De Berdt

On Jul 15, 9:42 am, Peter De Berdt [email protected] wrote:

My googling has not turned up any existing gems/plugins that just

A google search for “rails chm” brought up these:

http://moiristo.wordpress.com/2008/08/28/ruby-core-ruby-on-rails-chm-...http://dirk.net/2007/12/30/generate-ruby-on-rails-chm-documentation/
etc.

Maybe you’ll have luck with those links.

Best regards

Peter De Berdt

Thanks Peter. I’m looking for cross-platform output, so I don’t think
the apple dictionary format will serve. I think those links tap into
the rdoc stuff, but I’ll give them a read & see.

Thanks!

-Roy

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs