Submodule References to all of Beej's Guides (that are on GitHub) with a portable POSIX script
that builds the epub
target for all of them at once.
You'll need to install the prereqs outlined by Beej in the various READMEs of the subrepos.
I make no promise that the following deps snippet is up to date, but it's what's in said READMEs at the time of this writing. Refer to the submodule READMEs for the most up to date dependencies:
- Gnu make (XCode make works, too)
- Python 3+
- Pandoc 2.7.3+
- XeLaTeX (can be found in TeX Live)
- Liberation fonts (sans, serif, mono)
Mac dependencies install (reopen terminal after doing this):
xcode-select --install # installs make
brew install python # installs Python3
brew install pandoc
brew install mactex # installs XeLaTeX
brew tap homebrew/cask-fonts
brew install font-liberation # installs Liberation fonts
git submodule update --init --recursive
(or just initialize the books you want to build)../make_epubs.sh
Epub files will be placed in a ./epubs
directory.