[dokuwiki] Re: How to generate static HTML from dokuwiki

  • From: Marc Haber <mh+dokuwiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 27 Oct 2005 14:30:35 +0200

On Thu, Oct 27, 2005 at 02:20:15PM +0200, Andreas Gohr wrote:
> Marc Haber writes:
> >Wouldn't it be nice to have that taken care of by dokuwiki? For
> >example, adding "&style=print" to invoke the print CSS, and having
> >that URL suffix automatically added to the intrawiki URLs being
> >generated? I don't know enough PHP to be able to judge whether this
> >would be a big change to dokuwiki's sources, but maybe someone on this
> >list can comment about that.
> 
> The stylesheet is not what you are thinking of. You could simply replace 
> the usual stylesheet with the print.css on your CD-ROM. But what you are 
> looking for is probably ?do=export_html

Yes, but I'd like to have the intrawiki links to point to the target
URL _including_ &do=export_html which is not currently the case. That
way, a spidered wiki content would only have the first page in
exported state, and all linked pages normal rendering.

> BTW. if you want to try your wget solution. DokuWiki accepts the do 
> parameter as X-DOKUWIKI-DO http header. (I think CURL is able to set 
> userdefined headers). I once wrote a small script for exporting using this 
> mechanism (don't have the code handy so don't ask).

Curl doesn't seem to support recursion though.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: