Automate the generation of the e-book
What I have found important in composing the e-book with examples was automating the work of generating the e-book. I have had a json file ( 10 years ago I have used xml ) and some specific folders with the chapters content. I have had also a template for each example chapter – that was ensuring all chapters look the same.
As an example , you can look at https://github.com/ignatandrei/RSCG_Examples/tree/main/ApplicationVersion and at https://github.com/ignatandrei/RSCG_Examples/tree/main/CopyConstructor
This is generated automatically with
var m = new MultiGenerator(folder);
await m.GenerateForImages(Path.Combine(folder, “docs”, “images”));
Also, pandoc ( see previous post ) it will generate the book from markdown.