Added first version of logic to handle example in documentation page