I am working on two projects in one that may be similar to what you’re thinking. I really like the way the University of Waterloo’s CS Python tutorial [1] is done, so I’m trying to get a little bit of comfort with web development, and I decided I wasn’t happy just being familiar with Haskell and wanted to get into ML... So I’m slowly going through the 2019 version of this book and inserting dummy formatted JS input blocks with the intention of hooking them up to an online interpreter. I doubt I’ll get all the way through the text, but if I want messing with fancy formatting and trying to learn the web design aspects (and therefore messing around with CSS waaaay too much) it doesn’t seem like an insurmountable task.
—- Also, the responsive design of the book works pretty well on iOS, and that has been a rarity in this area from my experience.
[1] https://cscircles.cemc.uwaterloo.ca/