Commit graph

16 commits

Author Message Date
00ec52d94a
naturals exercises 2021-09-09 01:17:09 -05:00
Wen Kokke
2c82ce21da
Switch to Hakyll as the build system for PLFA (#540) 2020-10-23 08:45:49 +02:00
Wen Kokke
d4c89dfeec Fix versions 2020-07-14 19:22:17 +01:00
Wen Kokke
5728f68076 Install packages to lua_modules/, add to path if found. 2020-07-02 15:46:48 +01: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
55c7a10e23 Add EPUB creation to the build
The EPUB is created with `pandoc` in combination with Lua filters, which
rewrite the abstract syntax tree to be more suitable for EPUB creation.
In particular all headings in the markdown files `part[123]/*.lagda.md`
are shifted up by 1 (e.g., level 1 heading -> level 2 heading), so that
we can make a level 1 heading for Appendix, Frontmatter, and different
parts of the book. This is done to match the structure on the website [1].

Syntax highlighting is done using pandoc's builtin syntax highlighter
(which uses the Haskell library `skylighting`). In other words, we do
not use `highlight.sh`, so the syntax highlighting is slightly different
than the website version of the book. This could certainly be dealt with
later.

What follows is a list of things that are currently broken, which is
probably not exhaustive:
- The `Acknowledgements` section is broken.
- Embedded fonts don't work. They're necessary for some ereaders, like my old Sony PRS-300.
- All inline links are broken. I could rewrite them with a Lua filter
  and some regex, although that's not very nice :)
- `epubcheck` validation fails for a variety of reasons.

Closes #112.

[1]: https://plfa.github.io/
[2]: https://github.com/w3c/epubcheck
2020-06-14 21:28:56 -04:00
Wen Kokke
b6f3363aa1 Added local link files to .gitignore 2019-07-14 13:00:36 +01:00
Wen Kokke
6203ffc992 Finished sed script for linking to the Agda stdlib 2019-07-12 13:56:17 +01:00
Wen Kokke
d2145da417 Updated .gitignore; rewrote SCP paper to use elsarticle class 2019-07-01 20:37:22 +02:00
Wen Kokke
33c58937e5 Added .jekyll-metadata to .gitignore 2018-12-19 10:30:59 +01:00
Wen Kokke
56e179c687
Removed out/ from .gitignore 2018-04-12 15:35:34 +01:00
Wen Kokke
6888d87b37
Fixed Makefile 2018-02-28 12:01:22 +00:00
Pepijn Kokke
a7cecb2b23
Minor changes in existing modules. 2017-03-11 23:00:02 +00:00
Pepijn Kokke
f58de1fcdc
Worked on the layout. 2017-03-11 22:28:50 +00:00
Pepijn Kokke
21b52e98e4
Moved .lagda files into src/; added basic structure of a website. 2017-03-10 15:49:30 +00:00
Pepijn Kokke
9a9020cbaf Initial commit 2017-03-10 11:41:30 +00:00