When the documents were initially in the spec repository, there were checks that the code (in the snippets inside the documents) was valid. This should probably be copied over.