wisdom icon indicating copy to clipboard operation
wisdom copied to clipboard

Create EPUB Compilation Script

Open cycomachead opened this issue 5 months ago • 1 comments

It looks like you had a working EPUB, but I thought I'd try to draft a script which would help with the described idea of one wisdom per page. I've been working on a 500 page manual with pandoc lately so I thought this would be a fun distraction. It snowballed a bit.

Since someone else already made a nice GitHub action, it seems like maybe the script here would be a possibly useful contribution. :)

# This makes the ebook, then tries to open it, by default in Apple Books.
./ebooks/compile.sh
# This will unzip the EPUB file, so you can inspect the raw html.
./ebooks/compile.sh --debug

ChatGPT and Claude are pretty good at getting started and drafting lua filters, but it will usually take a few iterations to get them right. (Debugging pandoc/lua is not the easiest thing to do.)

Cheers!

P.S. I deeply miss the SF meetups. They were great.

cycomachead avatar Aug 15 '25 08:08 cycomachead

This is how pages look, but there are some bugs.

Screenshot 2025-08-15 at 1 45 17 AM Screenshot 2025-08-15 at 1 45 14 AM I'm sure this can be resolved, but CSS and epub is a bit different than the browser... I have less experience with epub specifically...

cycomachead avatar Aug 15 '25 08:08 cycomachead