bookish
bookish copied to clipboard
Export edition as app
Instead of hosting, authors should be able to export an edition for hosting elsewhere. We already build these in hosting; just bundle them as a zip instead. This will be easier after #282.
It should:
- Download everything
- Construct a
book.json
- Download all images
- Grab
bookish-reader
repo - Build the book
- Export a zip file
The resulting build should be suitable for hosting elsewhere.
Actually, this is easier than hosting. I'm working on this first so I can migrate existing books on my faculty webpage.
I got stuck on this: there's no way to build the book in a cloud function, since I can't run Sveltekit or Vite on the command line. But we can enable an export of the edition.json
and chapter files so that at least authors can get an archive of the book text to store elsewhere. See the commented out code in functions/publishEdition
.