willjp / mediawiki-dump2html

Converts a mediawiki xml dump to static html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mediawiki-dump2html

Automation around pandoc to to converts a mediawiki XML dump to a static html site.

Because you should never not have access to your notes.

Features

  • much faster than wget, and similar approaches
  • incremental backups (only replace missing, outdated page revisions)
  • syntaxhighlighting preserved

Requires

Install

go install github.com/willjp/mediawiki-dump2html@latest

# append $GOBIN to your $PATH
PATH=${PATH}:${GOBIN:=~/go/bin}

Usage

# dump your wiki
php ${your_wiki}/maintenance/dumpBackup.php --current --quiet > dump.xml

# generate statichtml
mediawiki-dump2html -i dump.xml -o out/

About

Converts a mediawiki xml dump to static html


Languages

Language:Go 99.2%Language:Shell 0.6%Language:Makefile 0.2%