You''d have to write some Ruby. I''ve been working on doing some
similar stuff. Here''s some info that might be helpful.
The methods you''ll need to play with are in wiki_contoller.rb. take
a look at ''export_html'' and
''export_pages_as_zip''. Also look at the
docs for RubyZip (vendor/rubyzip-xx/lib/zip/zip.rb), you''ll need to
add some additional zip_out.put_next_entry calls in for the extra
files you''re adding to the archive.
In wiki_controller.rb, the ''zip_out.puts(block.call(page))''
part of
the ''@web.select.by_name.each do |page|'' block is where the
page is
added to the zip archive. I put added another method to that line
that take care of my search/replace needs to keep links working.
Also this article might be helpful.
http://redhanded.hobix.com/inspect/
thinStrandOfSearchAndReplaceRails.html
On Aug 25, 2005, at 5:11 AM, Huw wrote:
> Hi all
>
> I have a web I am using to create some systems documentation and so I
> want it exported as a static set of pages when finished.
>
> Question: Is there any way to make the export function add the images
> referenced into the export zip file *and* change the image links so
> that when the whole lot is dumped into a directory it will work and
> serve images locally ?
>
> Thanks
>
> Huw
>
> _______________________________________________
> Instiki-users mailing list
> Instiki-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/instiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/instiki-users/attachments/20050825/f8a33a0d/attachment-0001.htm