Skip to content

Add PDF and EPUB build system using pandoc in Docker#8

Open
kuchejak wants to merge 1 commit into
lawmaster10:masterfrom
kuchejak:add-pdf-epub-build
Open

Add PDF and EPUB build system using pandoc in Docker#8
kuchejak wants to merge 1 commit into
lawmaster10:masterfrom
kuchejak:add-pdf-epub-build

Conversation

@kuchejak

Copy link
Copy Markdown

What

Adds a reproducible build system that renders the book to EPUB and PDF from the Markdown chapters.

  • build/build.sh — builds both formats with pandoc, running the chapters in reading order (preface + ch01–ch15).
  • build/Dockerfile — pinned pandoc/latex image with DejaVu fonts, so the non-ASCII glyphs used in the book (arrows, math relations, superscripts, curly quotes) render correctly under xelatex.
  • build/metadata.yaml — shared title/author and LaTeX layout settings for both outputs.
  • .gitignore — excludes the generated build/*.epub / build/*.pdf artifacts and .DS_Store.

How to use

./build/build.sh

Requires only Docker. The script builds the image, then writes build/how-crypto-actually-works.epub and build/how-crypto-actually-works.pdf.

Notes

  • The pandoc/latex base image is amd64-only; the script forces linux/amd64, so arm64 hosts (Apple Silicon) build under emulation without extra setup.
  • Generated artifacts are not committed — only the build tooling is.

Adds build/build.sh which renders the chapters to EPUB and PDF via a
pandoc/latex Docker image (build/Dockerfile) and shared metadata
(build/metadata.yaml). Generated .epub/.pdf artifacts and .DS_Store
are gitignored.
@kuchejak

Copy link
Copy Markdown
Author

This is the generated PDF: how-crypto-actually-works.pdf. EPUBs can not be uploaded to github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant