iksnae / actual-intelligence

A practical, non-technical guide to using AI tools like ChatGPT in everyday life
MIT License
0 stars 0 forks source link

Add MOBI/Kindle Format Support #31

Closed iksnae closed 3 months ago

iksnae commented 3 months ago

This PR adds MOBI/Kindle format support to the "Actual Intelligence" book project, with minimal changes to the existing build process. It also improves the release notes format and README links.

Changes:

  1. Build Script (build.sh):

    • Added MOBI generation step after EPUB generation using Calibre's ebook-convert
    • Set publisher metadata to "Khaos Studios" for both EPUB and MOBI formats
  2. GitHub Workflow (.github/workflows/build-book.yml):

    • Added Calibre to the list of required packages
    • Included MOBI files in artifacts and release uploads
    • Enhanced the release notes with a nicely formatted table of download links
    • Added Khaos Studios as the publisher in release notes
  3. README Updates:

    • Added a MOBI/Kindle download button
    • Listed Calibre as a prerequisite for local builds
    • Changed the "Read Online" button to point directly to GitHub Pages
    • Added a section noting Khaos Studios as the publisher
    • Added a link to view all previous releases

Testing:

The changes have been designed to gracefully handle errors and follow the existing pattern of fallbacks in the build script. If EPUB generation fails, MOBI generation will be skipped.

These changes enable readers to directly download the book in Kindle format without needing to perform the conversion themselves.