There are a number of offline batch processing scripts here.
Each script has its own documentation file.
The scripts are:
appendFile.rb -- appends one json page to another
cleanJournal.rb -- removes journal entries making the page appear "fresh"
createSummary.rb -- creates an index of the files for a site.
renamePage.rb -- renames a json page and updates references to it.
splitFile.rb -- splits a json file into multiple parts.
All of these are intended to aid the initial creation of a SFW site from other documents. Their actions are not performed on a live server, but write output to a separate directory for evaluation and possible staging into a server.
The files in scripts/originals are not important. They are just for testing.