You could have integration tests that reproduce what you show in tutorials. This way, when you need to change the tutorial, the integration test breaks, and you know you have to update both the test and the tutorial.
Good idea, is this something you do/have seen somewhere before? Feels like such a common problem I have a hard time believing there aren't any standard practices for it