The Godbolt compiler explorer has gained an IDE tree ability not that long, which I think could be used to host examples embedded in the CMake documentation. Here is one example: Compiler Explorer
People often complain about the lack of extensive examples in the CMake docs and I think this would be an ideal way to address that, since people can take these examples and toy with them from the comfort of their browsers.
I haven’t looked at it more closely, but I’m sure there is an API to programmatically create godbolt links with a desired layout.
I’m curious what people’s opinion on this is.