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

  • From: Harry Fuecks <hfuecks@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 27 Oct 2005 14:10:52 +0200

> That sounds more complicated than I imagined it. I was more thinking
> about doing wget with some funky options.

It will be more work but I doubt it will be that much more work,
assuming you're familiar with PHP. The advantage is you'll have more
control over what get's generated, especially links.

The other think you'll probably need to do is define the DOKU_BASE and
DOKU_URL constants - when running on a web server this are resolved
from variables like $_SERVER['SCRIPT_NAME']; . You may also need to
massage the $conf variable at runtime, depending on things like
security permissions.

That said...

> But I do not know how to:
>
>   * invoke the print style from the URL line and

When you store the CSS files, why not just overwrite style.css with
print.css? That means the default becomes the print style.

>   * have dokuwiki return intrawiki links in a format that makes the
>     link targets show in print style as well.

You'll probably need to do some search and replace with regexes on the
pages you download. There's a simple example of doing this with Perl
here: http://mia.ece.uic.edu/~papers/perl/msg00002.html
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: