Minor refactoring of generate.sh#82
Conversation
|
thanks for the contribution! this will be largely superceeded by #103. As for the Of course, it's not too bad because we don't expect the links to change any time soon, and |
ulysses4ever
left a comment
There was a problem hiding this comment.
Hey @oliverkwebb! Could you please rebase on top of the current main branch? We don't store generated HTML anymore and the shell script has been cleaned up a bit (including removing $ in arithmetics) but some of your changes may still be relevant!
I hope to get the build infrastructure in a flexible enough state eventually so that the book can be compiled into different formats (mainly, PDF and single-page HMTL)
Changes Made:
sed command | sed command->sed "command; command", unnecessary$in shell mathP.S.
Right now, the filenames for the chapters are being stored in a simple text file, and the titles for the chapters are being extracted using
sed, if that file was a YAML file, which stored the filenames and titles in a list, and the templating could use it to reference the previous/next chapters (with pandoc's$for$). It would remove the need for most of the shell code here (at the cost of the file being harder to parse)