Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to specify href for logo explicitly #627

Closed
ghost opened this issue Aug 30, 2018 · 1 comment
Closed

ability to specify href for logo explicitly #627

ghost opened this issue Aug 30, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 30, 2018

The href use for the logo when using the x-logo extension is the info.contact.url field of the OAS.

<a class="sc-jhAzac bwwUyr" href="https://github.com/Rebilly/ReDoc">
   <img class="sc-bRBYWo ibLsTy" src="https://rebilly.github.io/ReDoc/petstore-logo.png" alt="Petstore logo">
</a>

Could it be possible to specify the href explicitly in the x-logo extension with something like

{
  "info": {
    "version": "1.0.0",
    "title": "Swagger Petstore",
    "x-logo": {
      "url": "https://rebilly.github.io/ReDoc/petstore-logo.png",
      "backgroundColor": "#FFFFFF",
      "altText": "Petstore logo",
      **"href": "https://petstore.com/homepage"**
    }
  }
}
@RomanHotsiy
Copy link
Member

This makes sense 👍

PR is welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant