executablebooks project: https://github.com/executablebooks
quarto: https://github.com/quarto-dev
I like the summary and details HTML elements.
Also maybe something like highlight.js or a markdown renderer.
The next time I build a page like that I might lean on GPT-4 for generating it. Or maybe mustache.