File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,29 @@ After this you can proceed as usual:
5656
5757Also, refer to the [ CONTRIBUTING.md] [ contributing ] file.
5858
59- ### Building the EPUB
59+ ### Building the EPUB and the PDF
6060
6161Run ` make epub ` . See ` make-cookbook.lisp ` .
6262
63- To exclude regions of text of the build (for example, embedded videos), use these flags:
63+ You need a decently recent version of [ Calibre] ( https://calibre-ebook.com/ ) . They provide an easy binary installation.
64+
65+ To exclude regions of text of the build (for example, embedded videos that makes no sense in a print format), use these flags:
6466
6567 <!-- epub-exclude-start -->
6668 <!-- epub-exclude-end -->
6769
70+ Our build script roughly does the following:
71+
72+ - concatenate all markdown content into one file
73+ - change yaml frontmatters to a markdown title
74+ - delete the mark regions from the file
75+ - make internal links work on the EPUB.
76+
77+ It uses some metadata in ` metadata.txt ` .
78+
79+ We can check the resulting EPUB with ` epubcheck ` .
80+
81+
6882## Origins
6983
7084This is a fork of the [ Common Lisp Cookbook] [ sf ] , moved from SourceForge.
Original file line number Diff line number Diff line change @@ -46,3 +46,19 @@ This snippet...
4646~~~
4747
4848If the result is large, use another code block, without comments.
49+
50+ ## EPUB gotchas
51+
52+ ### Embedded content
53+
54+ We should not abuse from embedded content, such as youtube videos.
55+
56+ Please exclude them from the EPUB generation with these flags:
57+
58+ <!-- epub-exclude-start -->
59+ <!-- epub-exclude-end -->
60+
61+ ### Internal links (for the EPUB)
62+
63+ We must tweak the markdown links so that internal links work in the
64+ EPUB reader. See ` fix-epub-links.sed ` to add your link or just ping us on GitHub.
You can’t perform that action at this time.
0 commit comments