Custom File Renderer?

I love the way the openapi.yaml renderer works. Is there a way to somehow hook in a user-created file renderer like that?

Thanks
Georg