bookish icon indicating copy to clipboard operation
bookish copied to clipboard

Export edition as app

Open amyjko opened this issue 2 years ago • 2 comments

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.

amyjko avatar Jan 29 '23 00:01 amyjko

Actually, this is easier than hosting. I'm working on this first so I can migrate existing books on my faculty webpage.

amyjko avatar Feb 05 '23 22:02 amyjko

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.

amyjko avatar Feb 13 '23 03:02 amyjko