Notes by Bill Alive

pandoc: Make a List of URLs into an Ebook (EPUB)

Next time you start a series of blog posts that looks compelling, why not take a minute and save it as an ebook? It’s easy with pandoc.

Example: The excellent Hypermodern Python series. I’ve read published Python books with far less substance. Also the, illustrations are gratuitously fantastic. So let’s write a quick script and save ourselves a copy:

pandoc \
-M title:"Hypermodern Python" \
-M author:"Claudio Jolowicz" \
-o Hypermodern_Python_22601.epub \
https://cjolowicz.github.io/posts/hypermodern-python-01-setup \
https://cjolowicz.github.io/posts/hypermodern-python-02-testing \
https://cjolowicz.github.io/posts/hypermodern-python-03-linting \
https://cjolowicz.github.io/posts/hypermodern-python-04-typing \
https://cjolowicz.github.io/posts/hypermodern-python-05-documentation \
https://cjolowicz.github.io/posts/hypermodern-python-06-ci-cd