Hello, Racketeers. I have a little side project to design a new language, and I thought it would be nice to have docs that let the reader try out the language in a built-in sandbox along the way. It would be a lot like A Tour of Go.
I'd like to use Scribble for the docs. Has anyone explored the idea of embedding a sandbox/REPL into a Scribble page before?
My initial thought is to start from the sandbox code from pasterack.org and the Scribble-based-rendering code from a site like https://lexi-lambda.github.io/. But maybe there are better starting points out there. I'm a Scribble novice, so I definitely don't know what layer of the stack would be right to do this at.
FWIW, I'm not worried about security, production hardening, etc. Just getting something up and running so I can tinker with it. The plan is to evaluate user programs server-side for now, but maybe someday I'll do client-side by compiling to WASM or something.