convert doc code blocks to examples