Commit graph

11 commits

Author Message Date
Wen Kokke
2c82ce21da
Switch to Hakyll as the build system for PLFA (#540) 2020-10-23 08:45:49 +02:00
Wen Kokke
d8caea8b69 Fix EPUB; move cached releases to .versions. 2020-07-14 18:59:27 +01:00
Wen Kokke
972cdf14a4 removed superfluous lua script, moved acknowledgements 2020-07-03 00:23:11 +01:00
Wen Kokke
3c0394b8a0 Rewrote render-liquid-template in Ruby 2020-07-02 21:35:20 +01:00
Wen Kokke
5728f68076 Install packages to lua_modules/, add to path if found. 2020-07-02 15:46:48 +01:00
Wen Kokke
c76940cbb5 Moved generated acknowledgements to out/epub. 2020-07-02 13:02:27 +01:00
Michael Reed
4e837c0975 run-liquid.lua: Add error checking and file output parameter
When running `make epub`, Make would try to satisfy the target
'src/plfa/acknowledgements_epub.md' by calling run-liquid.lua.  But due
to the use of shell redirection, Make would always create the file
acknowledgements_epub.md, even if run-liquid.lua failed, in which case
acknowledgements_epub.md would be empty.  This empty file would still
satisfy the 'src/plfa/acknowledgements_epub.md' target, allowing the
pandoc command line in the 'out/plfa.epub' target to proceed---and later
fail.

To avoid this, we now (a) add a bunch of error checking to run-liquid.lua,
and (b) write directly to acknowledgements_epub.md instead of relying on
shell redirection, so that acknowledgements_epub.md will only be created
(or modified) if run-liquid.lua succeeds.
2020-07-01 17:08:19 -04:00
Michael Reed
99aa26401f EPUB: Populate acknowledgements.md with contributors
Use liquid-lua to generate acknowledgements_epub.md, which is used by
pandoc to build the EPUB book.  Also stop using the '{%-' / '-%}'
syntax, which liquid-lua does not support, in templates.

Also add a vertical space between the first bullet in each bulleted
list so pandoc recognizes bulleted lists as such. This has no effect on
the the website.
2020-06-28 14:17:45 -04:00
Michael Reed
3c667f3f9b Review: typo and neater regex 2020-06-17 20:00:36 -04:00
Michael Reed
75654740b3 EPUB: Fix broken links
This is done with a lua filter that rewrites links with regular
expressions.

References #480.
2020-06-17 19:38:26 -04:00
Wen Kokke
b2b8b324af Moved epub-specific files to epub folder. 2020-06-16 16:10:10 +01:00