New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/updates guide generation - EPUB #45539
Feature/updates guide generation - EPUB #45539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
I know the code for generation was taken from the previous kindle code, but I think there's some room to clean it up as part of this PR so I've left a few comments around style etc.
After making these changes the PR will need to be squashed into 1 commit with a descriptive commit message about what is changing and why. We'll need a changelog entry too noting that mobi is no longer generated and instead we just generate an epub for kindle.
Thank you, @eileencodes, for reviewing this. |
@eileencodes I have completed doing everything you mentioned. |
Removes kindlerb logic Adds template for epub generator Renames the kindle dir to /epub Adds epub module to generator and replaces kindle Fixes mimetype Creates basic epub book Deletes old kindle module Adds zip package Updates rubyzip gem name Removes now unused gepub gem Adds the required container file for epubs Fixes media type Adds new epub generation logic Removes all buttons from output html Refactors and generates valid epub files Removes frontmatter logic used for kindlegen Filters out epub files in zip Updates link to kindle doc on sidebar Fixes rubocop issues Adds deprecation warning for the old kindle task Refactors and cleans up epub module Cleans up epub code Cleans up private internal method code style Removes unnecessary imagemagick check
c21716c
to
56e96d9
Compare
Thanks @geongeorge for taking on this task and congrats on your first PR to Rails 🎉 |
Summary
Update the existing Kindle version of the guide from .mobi to .epub because Amazon is discontinuing support for the .mobi format.
See issue: #45499
Tested the EPUB on Calibre, Apple books, Kindle Paperwhite (7th Gen), Kindle (10th Gen), ReadEra on android
Additional benefits
Other Information
ruby_on_rails_guides_fbbdd2b.epub.zip