state-machine docs using ``` tags