Use wget to retrieve all the pages, then delete the diffs and revisions, etc.
wget -r -k --html-extension http://example.com/wiki/url find . -name *diff=* -delete find . -name *revision=* -delete find . -name *action=* -delete find . -name *back=* -delete
After LunarPages upgrade in Dec 2018 broke it, changing startform to start_form and endform to end_form fixed it https://github.com/ericvaandering/DocDB/pull/14/files