From af5c2250e80527853647a1a1a465c731520a3443 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 29 Jun 2016 22:43:45 +0300 Subject: [PATCH 1/3] Uncomment 'star-me' on demo-page :star2: --- demo/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/index.html b/demo/index.html index 8f466a01..27b4769f 100644 --- a/demo/index.html +++ b/demo/index.html @@ -17,8 +17,8 @@ - + From f0a4534400e09200b4aa8392ace7743d7fe64cf0 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 30 Jun 2016 11:34:39 +0300 Subject: [PATCH 2/3] Add info about CDN to README fixes #50 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5db3d241..f9b26265 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,9 @@ or using [npm](https://docs.npmjs.com/getting-started/what-is-npm): npm install redoc --save -Alternatively you can just download [`redoc.min.js`](https://raw.githubusercontent.com/Rebilly/ReDoc/releases/dist/redoc.min.js). +Alternatively, you can **reference redoc directly** from CDN: +- latest release: https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js +- particular release, e.g. v0.14.0: https://rebilly.github.io/ReDoc/releases/v0.14.0/redoc.min.js #### 2. Reference redoc script in HTML Then reference [`redoc.min.js`](https://raw.githubusercontent.com/Rebilly/ReDoc/releases/dist/redoc.min.js) in your HTML page: From ad52726b908feb34723ef57e5f6d514ac2af1358 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 30 Jun 2016 16:42:36 +0300 Subject: [PATCH 3/3] Fix various JsonSchema rendering bugs --- lib/components/JsonSchema/json-schema.html | 12 +++++----- lib/components/JsonSchema/json-schema.ts | 24 ++++++++++++++----- lib/components/MethodsList/methods-list.html | 2 +- lib/components/MethodsList/methods-list.ts | 4 ++++ .../ResponsesList/responses-list.html | 2 +- .../ResponsesList/responses-list.ts | 6 ++++- lib/services/schema-helper.service.ts | 2 +- package.json | 2 +- 8 files changed, 37 insertions(+), 17 deletions(-) diff --git a/lib/components/JsonSchema/json-schema.html b/lib/components/JsonSchema/json-schema.html index f3512c8e..1d075bca 100644 --- a/lib/components/JsonSchema/json-schema.html +++ b/lib/components/JsonSchema/json-schema.html @@ -17,11 +17,11 @@ {{enumItem.val | json}} - +
-