Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [08-2005 Date Index] [Date Next] || [Thread Prev] [08-2005 Thread Index] [Thread Next]

[dokuwiki] Re: DokuWiki offline version generator

  • From: Riny Heijdendael <riny@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 06 Aug 2005 16:14:26 +0200
Pavel Shevaev wrote:
We're using DokuWiki as the main documenting tool and find it quite
convenient. However users usually like to read documentation offline,
that's why we decided to write a simple DokuWiki offline version
generator. It was quite an easy task using new Harry Fuecks' parser.


Hi Pavel,

Very nice done indeed!

I have been thinking on how to create one large HTML file with all content included, by using the include plugin from esther.

http://wiki.splitbrain.org/plugin:include

So the idea would be to create an expanded index with all pages included.

Anyone tried this approach already?


Thnx, Riny




Features:

1) it parses all *.txt files in data/pages directory recursively in
order to get xhtml version of them in export directory

2) the exported html files have .html extension and have flat layout
where namespace stuff ":" is replaced with "-" symbol, e.g.
"foo:bar:yo-yo:test" becomes foo-bar-yo-yo-test.html

3) static html files have breadcrumbs which are generated using
namespaces

4) there's a very primitive php template which you can use to make
your own design of offline html pages

5) all data/media files are simply copied to the export directory

Here's how it works:

1) unzip the attached archive

2) run

php make.php --verbose /path/to/your/dokuwiki/installation/ 
/path/where/to/export/

That should be it :) We tested it with the latest dokuwiki official
release(2005-07-13) and it worked for us pretty good.

There's a lot of things which can be improved so we're open to any
kind of comments and suggestions.

Best regards, Pavel
--
Pavel Shevaev, pacha.shevaev@xxxxxxxxx
LIMB - http://limb-project.com
Bureau of Information Technologies - http://www.bit-creative.com

-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.