blob: 2a71b3d47e0c716d75731bc1c5e40db92a2a12ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# staticwiki
Yet another low-effort tool for rendering MediaWiki XML dumps to static html
pages.
## Features
- partial wikitext support
- can accept bzip2 compressed streams.
- can output tar stream (could be piped to mksquashfs to recompress without
writing to disk)
- horribly bad code :)
## Usage
- clone repo
- obtain rustc (tested with nightly)
- `cargo install --path .`
- Get help: `staticwiki --help`
- Convert to squashfs:
`staticwiki --bzip2 --tar < dump.xml.bz2 | mksquashfs - wiki.sfs -tar -comp zstd`
(note: the `-tar` option prevent mksquashfs from compressing in parallel for
some reason. no known fix except for writing to disk)
## License
`AGPL-3.0-only`
|