Provide a doc example for discover_repository

To clarify the behaviour and usage.