diff --git a/Dockerfile b/Dockerfile index f3a9869..27dbbc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# Dockerfile.rails FROM ghcr.io/xu-cheng/texlive-full WORKDIR /root diff --git a/README.md b/README.md index c2c11aa..d6da190 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,11 @@ There's an additional enhanced accessibility version using a sans serif font: * [Download compiled .mobi version](https://www.the-bread-code.io/book-sans-serif.mobi) * [Download compiled .azw3 version](https://www.the-bread-code.io/book-sans-serif.azw3) +## Hardcover version + +There is a hardcover version of the book available for purchase. [You can +read more details here.](https://breadco.de/physical-book) + ## Support Did you find a typo, or feel the wording could be improved? diff --git a/book/book.mk4 b/book/book.mk4 index eb3ff75..6a23d4e 100644 --- a/book/book.mk4 +++ b/book/book.mk4 @@ -1,9 +1,8 @@ local filter = require "make4ht-filter" -local changePath = function(s) return s:gsub("%./images//","images/") end local removeHeight = function(s) return s:gsub('height="%d+"', '') end local removeWidth = function(s) return s:gsub('width="%d+"', '') end local removeMaxWidth = function(s) return s:gsub(' max-width: %d+px;', '') end -local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(changePath(s)))) end +local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(s))) end local process = filter{removeFixedSettings} Make:htlatex() Make:match("html$",process) diff --git a/book/book.tex b/book/book.tex index 7c28cc3..15a677e 100644 --- a/book/book.tex +++ b/book/book.tex @@ -35,16 +35,16 @@ % Folders where to search for images \graphicspath{ - {./images/} - {./troubleshooting/} - {./sourdough-starter/} - {./troubleshooting/crumb-structures/} - {./history/} - {./images/external/} - {./baking/} - {./wheat-sourdough/} - {./wheat-sourdough/shaping/} - {./non-wheat-sourdough/} + {images/} + {troubleshooting/} + {sourdough-starter/} + {troubleshooting/crumb-structures/} + {history/} + {images/external/} + {baking/} + {wheat-sourdough/} + {wheat-sourdough/shaping/} + {non-wheat-sourdough/} } % Layout rules @@ -69,7 +69,7 @@ % Title page \begin{titlepage} \centering - \includegraphics[width=\textwidth]{cover-page} + \includegraphics[width=\textwidth]{images/cover-page.jpg} Version: \today \end{titlepage} diff --git a/book/intro/preface.tex b/book/intro/preface.tex index 7fc601a..060231c 100644 --- a/book/intro/preface.tex +++ b/book/intro/preface.tex @@ -164,13 +164,10 @@ and how to adapt them when things go wrong while making bread. It is my desire for this knowledge to be accessible to everyone around the world, regardless of budget, and as such, I do not want to charge for the book. That's why I've decided to make it open source and have asked the community to support my work financially via my ko-fi page -(https://ko-fi.com/thebreadcode). The community's feedback has been amazing so far, and -I've already raised much more money than initially expected. - -The first version of the book will only be available digitally---this way, everyone can read -it---though there might also be a hardcover version in the future, depending on how well received -and appreciated it is by bakers around the world. The hardcover version will, of course, cost a -bit of money, but the digital version will remain free. +\url{https://ko-fi.com/thebreadcode}. The community's feedback has been amazing so far, and +I've already raised much more money than initially expected. The digital version of this book +will always remain free. There is also a hardcover version of the book available for purchase. +You can read more details here: \url{https://breadco.de/physical-book} In this book, I will try to be as scientific as possible. I in no way claim, however, that it will itself be a work of science. I have conducted several experiments that I will write diff --git a/book/sourdough-starter/sourdough-starter-types.tex b/book/sourdough-starter/sourdough-starter-types.tex index b78e00a..9133e32 100644 --- a/book/sourdough-starter/sourdough-starter-types.tex +++ b/book/sourdough-starter/sourdough-starter-types.tex @@ -79,7 +79,7 @@ a longer fermentation before most gluten is broken down. The regular sourdough starter is made at a hydration of around 100 percent. This means the starter has equal parts of flour and water. This is the most -common and must universal sourdough starter there is. The starter has a good +common and most universal sourdough starter there is. The starter has a good balance of yeast and bacteria. After a feeding, the volume increases and increases. After it reaches a certain peak, it will start to collapse again. diff --git a/book/sourdough-starter/sourdough-starter.tex b/book/sourdough-starter/sourdough-starter.tex index 7d7a4e3..ba7762e 100644 --- a/book/sourdough-starter/sourdough-starter.tex +++ b/book/sourdough-starter/sourdough-starter.tex @@ -106,7 +106,7 @@ endophytes living in the grain. Start by measuring approximately 50 grams each of flour and water. The measurements don't have to be exact; you can use -less or more, and just and eyeball the proportions. These +less or more, or just eyeball the proportions. These values are just shown as a reference. Don't use chlorinated water when setting up your starter. diff --git a/makefile b/makefile index eb0eccc..88e1d91 100644 --- a/makefile +++ b/makefile @@ -1,11 +1,11 @@ +PHONY: build_pdf +build_pdf: build_docker_image + docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make build_pdf" + .PHONY: bake bake: build_docker_image docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make bake" -.PHONY: release -release: build_docker_image - docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make release" - .PHONY: build_docker_image build_docker_image: docker build -t the-sourdough-framework -f Dockerfile .