chrisanthropic / Open-Publisher

Using Jekyll to create outputs that can be used as Pandoc inputs. In short - input markdown, output mobi, epub, pdf, and print-ready pdf. With a focus on fiction.
https://github.com/chrisanthropic/Open-Publisher/wiki
MIT License
243 stars 27 forks source link

Enable running rake target without argument all #23

Open Letme opened 3 years ago

Letme commented 3 years ago

Now when you run rake pdf it does not build all the books, but throws some strange error (actually it builds jekyll and then fails with wrong filename). I realize that you expect to run rake pdf[all], but I think it is implied that rake pdf should be called when you want to build for all books.

It is a simple check if the book argument is null, then also consider it in all target.