Extract example API from masterdoc to masterdoc-example