Leanpub production requires a particular file and folder structure:
manuscriptfolder which includes abook.txtfor chapters.imagesorresourcesfolder (depending on markup format choice) inside themanuscriptfolder.
Besides the images folder, the rest of the folders are git submodules, ie pointers to other repos:
git submodule update --remote --merge
The git submodule is a pointer to another repo and is (currently) not recognised by Leanpub, so we need an actual copy of the images repo inside this repo, which is done with git subtree:
git pull -s subtree images master
lua filters and workflow are adapted from the kallipos repo: documentation for lua filters