We need to ensure that examples execute, but this is tricky because:
- if we wrote examples in an executable way, so that their output can be verified, they would become cluttered, and we don't want that
- ...so, we need a way of converting examples into an executable form, which we can run & verify
- ...moreover, we need to display code examples without the setup code, with an additional tab saying something like "Complete example" or "Executable script" where the full version would be displayed
FWIW, it should be fun writing this type of infrastructure but it's also worth exploring if there are existing solutions that we could use.
We need to ensure that examples execute, but this is tricky because:
FWIW, it should be fun writing this type of infrastructure but it's also worth exploring if there are existing solutions that we could use.