Commit graph

2262 commits

Author Message Date
Wen Kokke
972cdf14a4 removed superfluous lua script, moved acknowledgements 2020-07-03 00:23:11 +01:00
Wen Kokke
23a11a68aa Fix #476 2020-07-02 23:47:27 +01:00
Wen Kokke
45203c2705 Moved up acknowledgements. 2020-07-02 23:25:59 +01:00
Wen Kokke
bce8bb3d89 Forgotten exec. 2020-07-02 22:22:13 +01:00
Wen Kokke
c021bcc82c Rewrote README to remove all the Lua stuff... 2020-07-02 22:21:18 +01:00
Wen Kokke
0b63dd967a Most hilarious ruby command ever. 2020-07-02 22:08:27 +01:00
Wen Kokke
eab2370701 Simplify .travis.yml 2020-07-02 21:55:05 +01:00
Wen Kokke
615cdfe245 Adding 'liquid' as a dependency. 2020-07-02 21:54:08 +01:00
Wen Kokke
45f40d0d8d Fixed Makefile, added epubtest. 2020-07-02 21:39:29 +01:00
Wen Kokke
3c0394b8a0 Rewrote render-liquid-template in Ruby 2020-07-02 21:35:20 +01:00
Wen Kokke
2748c8605c Install Lua and Luarocks 2020-07-02 21:03:59 +01:00
Wen Kokke
5821dc621c Change .travis.yaml 2020-07-02 20:52:33 +01:00
Wen Kokke
d9249935c0 Fix problem in Makefile 2020-07-02 20:11:43 +01:00
Wen Kokke
69b89e8d1f Moving things to .travis.yaml 2020-07-02 20:10:16 +01:00
Wen Kokke
660e558299 Major changes to Makefile 2020-07-02 19:53:24 +01:00
Wen Kokke
871052e49b Full path to Lua 2020-07-02 19:33:20 +01:00
Wen Kokke
968676147a Specify lua-dir. 2020-07-02 19:31:55 +01:00
Wen Kokke
b76a105cce Check luarocks version. Specify lua version on rocks install. 2020-07-02 19:29:52 +01:00
Wen Kokke
06205deaa7 Update Lua config 2020-07-02 19:18:06 +01:00
Wen Kokke
840d93deef Install Lua 5.3 2020-07-02 19:12:58 +01:00
Wen Kokke
f510d870ff Debugging travis build. 2020-07-02 16:19:57 +01:00
Wen Kokke
8f0b55b4ae Minor fix. 2020-07-02 16:15:54 +01:00
Wen Kokke
cfec58a2ba Install lua packages locally 2020-07-02 16:09:36 +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
0b4df68fba Added EPUB build to Travis 2020-07-02 13:40:12 +01:00
Wen Kokke
95b976ed1b Minor fix. 2020-07-02 13:33:54 +01:00
Wen Kokke
2f8418a8c2 Luarocks install local 2020-07-02 13:14:07 +01:00
Wen Kokke
6edc6e5b85 Fix #487 2020-07-02 13:06:24 +01:00
Wen Kokke
ce40f1d96f Updated EPUB instructions in README. 2020-07-02 13:04:58 +01:00
Wen Kokke
c76940cbb5 Moved generated acknowledgements to out/epub. 2020-07-02 13:02:27 +01:00
Wen Kokke
353ff35644
Merge pull request #485 from mreed20/epubcheck
Fix remaining epubcheck warnings
2020-07-02 10:17:27 +01:00
Wen Kokke
be2478905f
Merge pull request #484 from mreed20/epub-acknowledgements-new
Populate acknowledgements.md with contributors for EPUB
2020-07-02 10:16:30 +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
2e6e53d60a Review: Add instructions for building the EPUB 2020-07-01 11:58:46 -04:00
Michael Reed
54f7d9a90a Review: Don't build EPUB by default for now 2020-07-01 10:57:15 -04:00
Michael Reed
024a62d29f Fix remaining epubcheck warnings
HTML does not permit nested <p> elements, which epubcheck complains
about. This change fixes those remaining warnings.

This change also causes the Dedication on the website to be centered
when viewed in Safari, which it was not before. The EPUB output looks
the same in either version with Thorium reader 1.3 on macOS.
2020-06-28 20:28:46 -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
wadler
36ef980840 updated index with Ghica course 2020-06-23 17:53:06 +01:00
wadler
2a5565dca9 updated home page 2020-06-23 17:41:28 +01:00
Wen Kokke
80ba7fdfec Changed acknowledgements. 2020-06-19 13:53:29 +01:00
Wen Kokke
f1296fbd3b Changed acknowledgements. 2020-06-19 13:40:29 +01:00
Wen Kokke
1d4913d89f Fix Dedication. 2020-06-18 12:33:18 +01:00
Wen Kokke
8469ed41cb Changed layout in Dedication. 2020-06-18 08:26:47 +01:00
Wen Kokke
9a8f8c1bb2
Merge pull request #481 from mreed20/rewrite-links
EPUB: Fix broken links
2020-06-18 07:57:47 +01: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
Wen Kokke
356b340e51 Removed old index file. 2020-06-16 12:02:25 +01:00
Wen Kokke
d04f594b1f Fixed bug in epub embedded fonts. 2020-06-16 12:01:19 +01:00
Wen Kokke
a5c7db8162 Adding only mononoki, from assets directory. 2020-06-16 11:49:06 +01:00