Difference between revisions of "Build your ZIM file"

Jump to navigation Jump to search
454 bytes added ,  13:04, 3 September 2017
→‎zimmer: newer version of the package
(→‎Zimbalaka: Tool no longer hosted, blog post no longer exists :( - I'll see if I can host a copy of the tool)
(→‎zimmer: newer version of the package)
Line 59: Line 59:
[[Wiki2html]] can be used to prepare static HTML files from a running Mediawiki instance.
[[Wiki2html]] can be used to prepare static HTML files from a running Mediawiki instance.


===zimmer===
===[https://github.com/vadp/zimmer zimmer]===
[https://github.com/vadp/zimmer zimmer] is a command line JavaScript (nodejs) ZIM file creator. It's mostly a drop-in replacement for [[#zimwriterfs|zimwriterfs]] with a notable exception: it does't support ''withFullTextIndex'' option so far. Zimmer doesn't depend on [[zimlib]] and there is no need to compile it. That's probably why it could be useful for someone.
This package is primarily a tool for creating a ZIM dump from a Mediawiki-based wiki.
 
The package consists of 2 scripts:
* '''''wikizimmer.js''''' -- dumps the wiki's articles (name space 0) into a collection of static HTML files.
* '''''zimmer.js''''' -- builds a ZIM file from a static HTML files collection. Historically, zimmer.js is mostly a drop-in replacement for zimwriterfs with a notable exception: it doesn't support withFullTextIndex option (index format is not documented).
 
The major point is that wikizimmer.js unlikely to mwoffliner doesn't depend on the Parsoid and Redis and zimmer.js unlikely to zimwriterfs doesn't depend on the zimlib.
 
The package is relatively easy to install and it can even process some wikis running rather old versions of the Mediawiki engine.


There is also zimmer's counterpart -- [https://github.com/vadp/unzimmer unzimmer]. It unpacks a ZIM file into a directory, which could be useful for some debugging.
There is also zimmer's counterpart -- [https://github.com/vadp/unzimmer unzimmer]. It unpacks a ZIM file into a directory, which could be useful for some debugging.
14

edits

Navigation menu