3 ms·
Glad you like the typesetting! I’m a professional web developer, among other things, and the typesetting is just HTML + Bootstrap CSS 4.4.1, rendered into PDFs
by lihaoyi 6y ago
Glad you like the typesetting! I’m a professional web developer, among other things, and the typesetting is just HTML + Bootstrap CSS 4.4.1, rendered into PDFs using Puppeteer. Turned out looking much better than I had hoped!
- krat0sprakhar 6y agoOh wow, I didn't realize that this bootstrap! Do you mind documenting your typesetting process? Would be a fun read!
- lihaoyi 6y agoI'm planning on open sourcing the build pipeline soon, but it's basically a Mill (http://lihaoyi.com/mill http://lihaoyi.com/mill) build pipeline which uses Scalatags + CommonMark-Java + Puppeteer + ApachePDFBox + EPubLib + kindlegen to transform Markdown into HTML and then into {Web, PDF, EPub, Kindle} X {sample, full} versions Updating a single chapter and re-rendering the PDF takes less than 1 second, and re-rendering the entire book in one format takes about 30s running parallel on my 4 core macbook.