mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 01:23:43 +03:00
Merge commit 'e39bdc244d0bf4c542124e3a6cad742b229ca4ff' into releases
This commit is contained in:
commit
ca6ad0e5e7
|
@ -1,3 +1,12 @@
|
|||
<a name="1.18.1"></a>
|
||||
## [1.18.1](https://github.com/Rebilly/ReDoc/compare/v1.17.0...v1.18.1) (2017-08-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* crash if `contact` is not in the spec ([1b9ba0d](https://github.com/Rebilly/ReDoc/commit/1b9ba0d)), closes [#332](https://github.com/Rebilly/ReDoc/issues/332)
|
||||
|
||||
|
||||
<a name="1.18.0"></a>
|
||||
# [1.18.0](https://github.com/Rebilly/ReDoc/compare/v1.16.1...v1.18.0) (2017-08-28)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
## [Live demo](http://rebilly.github.io/ReDoc/)
|
||||
|
||||
[<img src="http://i.imgur.com/XWLWJvl.png" width="250">](https://github.com/Rebilly/generator-openapi-repo#generator-openapi-repo--)
|
||||
[<img alt="Deploy to Github" src="http://i.imgur.com/YZmaqk3.png" height="60px">](https://github.com/Rebilly/generator-openapi-repo#generator-openapi-repo--) [<img alt="ReDoc as a service" src="http://i.imgur.com/edqdCv6.png" height="60px">](https://redoc.ly) [<img alt="Customization services" src="http://i.imgur.com/c4sUF7M.png" height="60px">](https://redoc.ly/#services)
|
||||
|
||||
## Features
|
||||
- Extremely easy deployment
|
||||
|
|
|
@ -39,6 +39,7 @@ info:
|
|||
termsOfService: 'http://swagger.io/terms/'
|
||||
contact:
|
||||
email: apiteam@swagger.io
|
||||
url: https://github.com/Rebilly/ReDoc
|
||||
x-logo:
|
||||
url: 'https://rebilly.github.io/ReDoc/petstore-logo.png'
|
||||
license:
|
||||
|
|
|
@ -16,13 +16,12 @@ export class ApiLogo extends BaseComponent implements OnInit {
|
|||
}
|
||||
|
||||
init() {
|
||||
let logoInfo = this.componentSchema.info['x-logo'];
|
||||
if ('url' in this.componentSchema.info['contact']) {
|
||||
this.logo.url = this.componentSchema.info['contact']['url'];
|
||||
}
|
||||
const info = this.componentSchema.info;
|
||||
const logoInfo = info['x-logo'];
|
||||
if (!logoInfo) return;
|
||||
this.logo.imgUrl = logoInfo.url;
|
||||
this.logo.bgColor = logoInfo.backgroundColor || 'transparent';
|
||||
this.logo.url = info.contact && info.contact.url || null;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "redoc",
|
||||
"description": "Swagger-generated API Reference Documentation",
|
||||
"version": "1.18.0",
|
||||
"version": "1.18.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Rebilly/ReDoc"
|
||||
|
|
Loading…
Reference in New Issue
Block a user