ocamlbook.org may be the most illustrative one: it exploits soupault's ability to pipe HTML element content through an external program to automatically type-check code examples in <code> tags with the compiler and also syntax-highlight them with an external tool. The approach would translate to any language without a need for language-specific tools.
I have been slowly rewriting my static blog from Hakyll to Nix + Soupault to simplify the tools used, remove Stack, and make the outputs reproducible. The maintainer is quick to respond to any questions and suggestions as well.