Last modified: 2008-09-03 16:52:55 UTC
php dumpHTML.php -d /some/directory
produces directory content approximately like this
a b c d e f g h i index.html l m math n o p q raw s t
The html files end up in places like /some/directory/s/a/n/Sandbox.html, but they refer to math files in "../../../../math" which would mean /some/math, instead of "../../../math" which translates to /some/directory/math. As a result no advanced math formulas show up in the exported html.
If --image-snapshot is used, and the fix from bug 12122 is used so that the images get relative paths, the relative paths of images have the same problem as the math, only that the directory name is upload. Curiously, the relative paths to files in the raw directory are correct ("../../../raw").
Also, the html files refer to CSS and images in "../../../../skins", but the skins are not copied to the new directory.
php dumpHTML.php -d /some/directory/wiki
mv math ..
cp -r <mwdir>/skins ..
I think this is solved in version v2.11 which creates MD5-hashed filenames for everything (articles, images, thumbnail images, media files). Dumps can be safely written to CD/DVD-ROMS see https://bugzilla.wikimedia.org/show_bug.cgi?id=8147 with attached diff and download url.