File tree 2 files changed +32
-2
lines changed
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:
56
56
57
57
Also, refer to the [ CONTRIBUTING.md] [ contributing ] file.
58
58
59
- ### Building the EPUB
59
+ ### Building the EPUB and the PDF
60
60
61
61
Run ` make epub ` . See ` make-cookbook.lisp ` .
62
62
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:
64
66
65
67
<!-- epub-exclude-start -->
66
68
<!-- epub-exclude-end -->
67
69
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
+
68
82
## Origins
69
83
70
84
This 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...
46
46
~~~
47
47
48
48
If 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