Skip to content
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

Add EPUB download option #87

Open
Freso opened this issue Mar 15, 2022 · 3 comments
Open

Add EPUB download option #87

Freso opened this issue Mar 15, 2022 · 3 comments

Comments

@Freso
Copy link
Contributor

Freso commented Mar 15, 2022

EPUB is a much more accessible format for ebook readers and mobile devices than PDFs (most of the time anyway), so it would be really nice to have an option for downloading as that.

I tried looking through the source to see how the PDF was made, since the more efficient path would be to automate the generation of the EPUB, but I didn’t find anything. Is the PDF manually updated? If so, I can probably make a commandline command or a small Python script that will compile the EPUB (pandoc should be able to deal with the brunt of it) on command.

@ErdaradunGaztea
Copy link
Contributor

Just a small thought — perhaps we could utilize Github Actions to run potential document-compiling scripts?

@Twipped
Copy link
Contributor

Twipped commented Mar 27, 2022

Yes, I had been making the PDF manually by printing to PDF. I would LOVE a github action to handle that, if somebody wants to spearhead it.

@gjvnq
Copy link
Contributor

gjvnq commented May 23, 2022

Look at how I implemented WARC generation. This might be able to be adapted into generating an EPUB.

As for generating PDF, one option would be using something like Chrome Puppeteer.

If you folks want, I think I can make the EPUB generation happen almost entirely in gulp. I would likely still use W3C's epubcheck for the final step as this tool can detect lots of potential mistakes in the EPUB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants