It's pretty much a big hack.
The book was originally written in TeX, with lots of macros on top. We hacked together a custom translator (~3k loc, written in golang) that parses the TeX and generates the site.
Then MathJax to render the equations, Bootstrap 4 for some navigation, and jeri.io for the interaction with images.