Skip to content

Commit fce8e24

Browse files
committedSep 14, 2022
README and styleguide: about the EPUB
1 parent 21e0171 commit fce8e24

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed
 

‎README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,29 @@ After this you can proceed as usual:
5656

5757
Also, refer to the [CONTRIBUTING.md][contributing] file.
5858

59-
### Building the EPUB
59+
### Building the EPUB and the PDF
6060

6161
Run `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

7084
This is a fork of the [Common Lisp Cookbook][sf], moved from SourceForge.

‎STYLEGUIDE.md

+16
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,19 @@ This snippet...
4646
~~~
4747

4848
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.

0 commit comments

Comments
 (0)
Please sign in to comment.