extensions: move code to separate files
Move the inline code snippets to separate files, so the can be linted or tested, before being included in the documentation.
Move the inline code snippets to separate files, so the can be linted or tested, before being included in the documentation.