Mw2html

From wikinotes

A tool to create a static-html copy of a MediaWiki website with working links (but no css, no search).

Install

# Install htmldata
cd /home/will/dev  # Install htmldata to a location on $PYTHONPATH
curl -#O http://www.connellybarnes.com/code/htmldata/htmldata

# Install mw2html
cd $www/maintenance
git clone https://github.com/samuell/mw2html.git

Configuration

In order for the pythonscript to backup your wiki, it must have permission to read it. Confirm the following:

# $WIKIROOT/LocalSettings.php

$wgGroupPermissions['*']['read'] = true;

Usage

python2 mw2html.py \
  http://127.0.0.1/index.php ~/mwexport \
  -f --no-flatten --no-hack-skin --no-remove-png