Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1eb0bc3

Browse files
author
Kevin Renskers
committed
Update the examples, fix whitespace issues in item.handlebars
1 parent 2f7d7be commit 1eb0bc3

File tree

6 files changed

+222
-203
lines changed

6 files changed

+222
-203
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.5.0 - March 10, 2014
2+
- Made the side menu a fixed height (#110)
3+
- Added a background color for PATCH (#117)
4+
- Response tab is set to active when request tab isn't shown (#120)
5+
- Added additional information in query parameter (#121)
6+
17
1.4.0 - January 30, 2015
28
- If an example's type is explicitly set to 'string' then don't syntax highlight it
39

examples/example.html

Lines changed: 17 additions & 13 deletions
Large diffs are not rendered by default.

examples/example.raml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ traits:
9191
id:
9292
type: string
9393
description: account identifier
94+
minLength: 1
95+
maxLength: 10
9496
get:
9597
headers:
9698
Authorization:
@@ -145,12 +147,13 @@ traits:
145147
/forgot:
146148
post:
147149
description: Sends an email to the user with a link to set a new password
148-
body:
149-
application/json:
150-
example: |
151-
{
152-
"email": "[email protected]"
153-
}
150+
responses:
151+
200:
152+
description: Test
153+
body:
154+
text/xml:
155+
example: |
156+
<test>This is a test</test>
154157
155158
/session:
156159
get:

examples/github.html

Lines changed: 180 additions & 174 deletions
Large diffs are not rendered by default.

lib/item.handlebars

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
<em>
99
{{#if this.required}}required{{/if}}
1010
(
11-
{{#if this.enum}}
11+
{{~#if this.enum~}}
1212
one of {{this.enum}}
13-
{{else}}
13+
{{~else~}}
1414
{{this.type}}
15-
{{/if}}
15+
{{~/if~}}
1616

17-
{{#if this.default}} - default: {{this.default}}{{/if}}
18-
{{#if this.repeat}} - repeat: {{this.repeat}}{{/if}}
19-
{{#ifTypeIsString}}
17+
{{~#if this.default~}} - default: {{this.default}}{{~/if~}}
18+
{{~#if this.repeat~}} - repeat: {{this.repeat}}{{~/if~}}
19+
{{~#ifTypeIsString~}}
2020
{{#if this.minLength}} - minLength: {{this.minLength}}{{/if}}
2121
{{#if this.maxLength}} - maxLength: {{this.maxLength}}{{/if}}
22-
{{else}}
22+
{{~else~}}
2323
{{#if this.minimum}} - minimum: {{this.minimum}}{{/if}}
2424
{{#if this.maximum}} - maximum: {{this.maximum}}{{/if}}
25-
{{/ifTypeIsString}}
26-
{{#if this.pattern}} - pattern: {{this.pattern}}{{/if}}
25+
{{~/ifTypeIsString~}}
26+
{{~#if this.pattern~}} - pattern: {{this.pattern}}{{~/if~}}
2727
)
2828
</em>
2929

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "raml2html",
33
"description": "RAML to HTML documentation generator",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"author": {
66
"name": "Kevin Renskers",
77
"email": "[email protected]"

0 commit comments

Comments
 (0)