DokuWiki2HtmlHelp
A free tool, DokuWiki2HtmlHelp.exe, is available to export a complete DokuWiki website into HTML Help. The Delphi source code is also available below under the GPL license.
DokuWiki2HtmlHelp
Converts a DokuWiki website into a Compiled Html Help file (.chm) complete with table of contents and index. Requires MS Html Help Workshop for the final compile. Free!
DokuWiki2HtmlHelp
Delphi source files for DokuWiki2HtmlHelp.exe. Open source under GPL license.
How it works
- uses ?do=index to get the first page of the index
- parses the index pages to build a list of content pages
- parses the the content pages for css and images
- strips out the stuff that is not Html Help friendly (scripts, forms, etc.)
- converts the links in the page to local links (if they are in the wiki)
- saves the pages locally in folders to replicate the namespaces
- builds the Html Help project file along with all of its supporting files (table of contents, index, mapping, etc.)
- downloads and renames all needed images and css
- calls Microsoft Html Help Compiler and generates the Compiled Html Help file (.chm)
Caveats
- I have only tried it on my own DokuWiki sites.
- Right now it only works if the wiki is using the ':' namespace delimiter.
- You need to disable url rewriting in the wiki configuration: $conf['userewrite'] = 0;
- https is NOT supported
Downloads
Converts a DokuWiki website into a Compiled Html Help file (.chm) complete with table of contents and index. Requires MS Html Help Workshop for the final compile. Free!
version: 2010.05.22 | size: ~1 MB
Delphi source files for DokuWiki2HtmlHelp.exe. Open source under GPL license.
version: 2010.05.22 | size: ~15 KB